@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Destination extends Object implements Serializable, Cloneable, StructuredPojo
Represents a cross-account destination that receives subscription log events.
Constructor and Description |
---|
Destination() |
Modifier and Type | Method and Description |
---|---|
Destination |
clone() |
boolean |
equals(Object obj) |
String |
getAccessPolicy()
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
|
String |
getArn()
The ARN of this destination.
|
Long |
getCreationTime()
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
String |
getDestinationName()
The name of the destination.
|
String |
getRoleArn()
A role for impersonation, used when delivering log events to the target.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessPolicy(String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
|
void |
setArn(String arn)
The ARN of this destination.
|
void |
setCreationTime(Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setDestinationName(String destinationName)
The name of the destination.
|
void |
setRoleArn(String roleArn)
A role for impersonation, used when delivering log events to the target.
|
void |
setTargetArn(String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a
Kinesis stream).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Destination |
withAccessPolicy(String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
|
Destination |
withArn(String arn)
The ARN of this destination.
|
Destination |
withCreationTime(Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
Destination |
withDestinationName(String destinationName)
The name of the destination.
|
Destination |
withRoleArn(String roleArn)
A role for impersonation, used when delivering log events to the target.
|
Destination |
withTargetArn(String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a
Kinesis stream).
|
public void setDestinationName(String destinationName)
The name of the destination.
destinationName
- The name of the destination.public String getDestinationName()
The name of the destination.
public Destination withDestinationName(String destinationName)
The name of the destination.
destinationName
- The name of the destination.public void setTargetArn(String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
targetArn
- The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example,
a Kinesis stream).public String getTargetArn()
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
public Destination withTargetArn(String targetArn)
The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example, a Kinesis stream).
targetArn
- The Amazon Resource Name (ARN) of the physical target to where the log events are delivered (for example,
a Kinesis stream).public void setRoleArn(String roleArn)
A role for impersonation, used when delivering log events to the target.
roleArn
- A role for impersonation, used when delivering log events to the target.public String getRoleArn()
A role for impersonation, used when delivering log events to the target.
public Destination withRoleArn(String roleArn)
A role for impersonation, used when delivering log events to the target.
roleArn
- A role for impersonation, used when delivering log events to the target.public void setAccessPolicy(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 String getAccessPolicy()
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
public Destination withAccessPolicy(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(String arn)
The ARN of this destination.
arn
- The ARN of this destination.public String getArn()
The ARN of this destination.
public Destination withArn(String arn)
The ARN of this destination.
arn
- The ARN of this destination.public void setCreationTime(Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
UTC.public Long getCreationTime()
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public Destination withCreationTime(Long creationTime)
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
UTC.public String toString()
toString
in class Object
Object.toString()
public Destination clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.