public class Destination extends Object implements Serializable, Cloneable
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.
|
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 where the log events will be delivered (for example, a
Kinesis stream).
|
int |
hashCode() |
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.
|
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 where the log events will be 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.
|
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 where the log events will be 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 where the log events will be delivered (for example, a Kinesis stream).
targetArn
- The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example,
a Kinesis stream).public String getTargetArn()
The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example, a Kinesis stream).
public Destination withTargetArn(String targetArn)
The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example, a Kinesis stream).
targetArn
- The Amazon Resource Name (ARN) of the physical target where the log events will be 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.
creationTime
- The creation time of the destination.public Long getCreationTime()
The creation time of the destination.
public Destination withCreationTime(Long creationTime)
The creation time of the destination.
creationTime
- The creation time of the destination.public String toString()
toString
in class Object
Object.toString()
public Destination clone()
Copyright © 2016. All rights reserved.