public class Destination
extends java.lang.Object
implements java.io.Serializable
Represents a cross-account destination that receives subscription log events.
Constructor and Description |
---|
Destination() |
Modifier and Type | Method and Description |
---|---|
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()
The ARN of this destination.
|
java.lang.Long |
getCreationTime()
The creation time of the destination, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
getDestinationName()
The name of the destination.
|
java.lang.String |
getRoleArn()
A role for impersonation, used when delivering log events to the target.
|
java.lang.String |
getTargetArn()
The Amazon Resource Name (ARN) of the physical target to where the log
events are delivered (for example, a Kinesis stream).
|
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)
The ARN of this destination.
|
void |
setCreationTime(java.lang.Long creationTime)
The creation time of the destination, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setDestinationName(java.lang.String destinationName)
The name of the destination.
|
void |
setRoleArn(java.lang.String roleArn)
A role for impersonation, used when delivering log events to the target.
|
void |
setTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log
events are delivered (for example, a Kinesis stream).
|
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)
The ARN of this destination.
|
Destination |
withCreationTime(java.lang.Long creationTime)
The creation time of the destination, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
Destination |
withDestinationName(java.lang.String destinationName)
The name of the destination.
|
Destination |
withRoleArn(java.lang.String roleArn)
A role for impersonation, used when delivering log events to the target.
|
Destination |
withTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log
events are delivered (for example, a Kinesis stream).
|
public java.lang.String getDestinationName()
The name of the destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
The name of the destination.
public void setDestinationName(java.lang.String destinationName)
The name of the destination.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- The name of the destination.
public Destination withDestinationName(java.lang.String destinationName)
The name of the destination.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
destinationName
- The name of the destination.
public java.lang.String getTargetArn()
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
Constraints:
Length: 1 -
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
public void setTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
Constraints:
Length: 1 -
targetArn
- The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
public Destination withTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
targetArn
- The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
public java.lang.String getRoleArn()
A role for impersonation, used when delivering log events to the target.
Constraints:
Length: 1 -
A role for impersonation, used when delivering log events to the target.
public void setRoleArn(java.lang.String roleArn)
A role for impersonation, used when delivering log events to the target.
Constraints:
Length: 1 -
roleArn
- A role for impersonation, used when delivering log events to the target.
public Destination withRoleArn(java.lang.String roleArn)
A role for impersonation, used when delivering log events to the target.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
roleArn
- A role for impersonation, used when delivering log events to the target.
public java.lang.String getAccessPolicy()
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
Constraints:
Length: 1 -
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
public void setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
Constraints:
Length: 1 -
accessPolicy
- 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
accessPolicy
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
public java.lang.String getArn()
The ARN of this destination.
The ARN of this destination.
public void setArn(java.lang.String arn)
The ARN of this destination.
arn
- The ARN of this destination.
public Destination withArn(java.lang.String arn)
The ARN of this destination.
Returns a reference to this object so that method calls can be chained together.
arn
- The ARN of this destination.
public java.lang.Long getCreationTime()
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setCreationTime(java.lang.Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
creationTime
- The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public Destination withCreationTime(java.lang.Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
creationTime
- The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.