public class Destination
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A cross account destination that is the recipient of subscription log events.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accessPolicy
An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.
|
private java.lang.String |
arn
ARN of this destination.
|
private java.lang.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.
|
private java.lang.String |
destinationName
Name of the destination.
|
private java.lang.String |
roleArn
A role for impersonation for delivering log events to the target.
|
private java.lang.String |
targetArn
ARN of the physical target where the log events will be delivered (eg.
|
Constructor and Description |
---|
Destination() |
Modifier and Type | Method and Description |
---|---|
Destination |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessPolicy()
An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.
|
java.lang.String |
getArn()
ARN of this destination.
|
java.lang.Long |
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.
|
java.lang.String |
getDestinationName()
Name of the destination.
|
java.lang.String |
getRoleArn()
A role for impersonation for delivering log events to the target.
|
java.lang.String |
getTargetArn()
ARN of the physical target where the log events will be delivered (eg.
|
int |
hashCode() |
void |
setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.
|
void |
setArn(java.lang.String arn)
ARN of this destination.
|
void |
setCreationTime(java.lang.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(java.lang.String destinationName)
Name of the destination.
|
void |
setRoleArn(java.lang.String roleArn)
A role for impersonation for delivering log events to the target.
|
void |
setTargetArn(java.lang.String targetArn)
ARN of the physical target where the log events will be delivered (eg.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Destination |
withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.
|
Destination |
withArn(java.lang.String arn)
ARN of this destination.
|
Destination |
withCreationTime(java.lang.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.
|
Destination |
withDestinationName(java.lang.String destinationName)
Name of the destination.
|
Destination |
withRoleArn(java.lang.String roleArn)
A role for impersonation for delivering log events to the target.
|
Destination |
withTargetArn(java.lang.String targetArn)
ARN of the physical target where the log events will be delivered (eg.
|
private java.lang.String destinationName
Name of the destination.
private java.lang.String targetArn
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
private java.lang.String roleArn
A role for impersonation for delivering log events to the target.
private java.lang.String accessPolicy
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
private java.lang.String arn
ARN of this destination.
private java.lang.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.
public void setDestinationName(java.lang.String destinationName)
Name of the destination.
destinationName
- Name of the destination.public java.lang.String getDestinationName()
Name of the destination.
public Destination withDestinationName(java.lang.String destinationName)
Name of the destination.
destinationName
- Name of the destination.public void setTargetArn(java.lang.String targetArn)
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
targetArn
- ARN of the physical target where the log events will be delivered
(eg. ARN of a Kinesis stream).public java.lang.String getTargetArn()
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
public Destination withTargetArn(java.lang.String targetArn)
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
targetArn
- ARN of the physical target where the log events will be delivered
(eg. ARN of a Kinesis stream).public void setRoleArn(java.lang.String roleArn)
A role for impersonation for delivering log events to the target.
roleArn
- A role for impersonation for delivering log events to the target.public java.lang.String getRoleArn()
A role for impersonation for delivering log events to the target.
public Destination withRoleArn(java.lang.String roleArn)
A role for impersonation for delivering log events to the target.
roleArn
- A role for impersonation for delivering log events to the target.public void setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
accessPolicy
- An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.public java.lang.String getAccessPolicy()
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
public Destination withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
accessPolicy
- An IAM policy document that governs which AWS accounts can create
subscription filters against this destination.public void setArn(java.lang.String arn)
ARN of this destination.
arn
- ARN of this destination.public java.lang.String getArn()
ARN of this destination.
public Destination withArn(java.lang.String arn)
ARN of this destination.
arn
- ARN of this destination.public void setCreationTime(java.lang.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.
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.public java.lang.Long 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.
public Destination withCreationTime(java.lang.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.
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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Destination clone()
clone
in class java.lang.Object