Class Destination
- All Implemented Interfaces:
Serializable
,Cloneable
A cross account destination that is the recipient of subscription log events.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.getArn()
ARN of this destination.A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.Name of the destination.A role for impersonation for delivering log events to the target.ARN of the physical target where the log events will be delivered (eg.int
hashCode()
void
setAccessPolicy
(String accessPolicy) An IAM policy document that governs which AWS accounts can create subscription filters against this destination.void
ARN of this destination.void
setCreationTime
(Long creationTime) A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.void
setDestinationName
(String destinationName) Name of the destination.void
setRoleArn
(String roleArn) A role for impersonation for delivering log events to the target.void
setTargetArn
(String targetArn) ARN of the physical target where the log events will be delivered (eg.toString()
Returns a string representation of this object; useful for testing and debugging.withAccessPolicy
(String accessPolicy) An IAM policy document that governs which AWS accounts can create subscription filters against this destination.ARN of this destination.withCreationTime
(Long creationTime) A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.withDestinationName
(String destinationName) Name of the destination.withRoleArn
(String roleArn) A role for impersonation for delivering log events to the target.withTargetArn
(String targetArn) ARN of the physical target where the log events will be delivered (eg.
-
Constructor Details
-
Destination
public Destination()
-
-
Method Details
-
setDestinationName
Name of the destination.
- Parameters:
destinationName
- Name of the destination.
-
getDestinationName
Name of the destination.
- Returns:
- Name of the destination.
-
withDestinationName
Name of the destination.
- Parameters:
destinationName
- Name of the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetArn
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Parameters:
targetArn
- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
-
getTargetArn
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Returns:
- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
-
withTargetArn
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Parameters:
targetArn
- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
A role for impersonation for delivering log events to the target.
- Parameters:
roleArn
- A role for impersonation for delivering log events to the target.
-
getRoleArn
A role for impersonation for delivering log events to the target.
- Returns:
- A role for impersonation for delivering log events to the target.
-
withRoleArn
A role for impersonation for delivering log events to the target.
- Parameters:
roleArn
- A role for impersonation for delivering log events to the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccessPolicy
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Parameters:
accessPolicy
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
getAccessPolicy
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Returns:
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
withAccessPolicy
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Parameters:
accessPolicy
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
ARN of this destination.
- Parameters:
arn
- ARN of this destination.
-
getArn
ARN of this destination.
- Returns:
- ARN of this destination.
-
withArn
ARN of this destination.
- Parameters:
arn
- ARN of this destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
- Parameters:
creationTime
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
-
getCreationTime
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
- Returns:
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
-
withCreationTime
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
- Parameters:
creationTime
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-