public class Destination extends Object implements Serializable, Cloneable
A cross account destination that is the recipient of 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()
ARN of this destination.
|
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.
|
String |
getDestinationName()
Name of the destination.
|
String |
getRoleArn()
A role for impersonation for delivering log events to the target.
|
String |
getTargetArn()
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 |
setArn(String arn)
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.
|
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)
ARN of this destination.
|
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.
|
Destination |
withDestinationName(String destinationName)
Name of the destination.
|
Destination |
withRoleArn(String roleArn)
A role for impersonation for delivering log events to the target.
|
Destination |
withTargetArn(String targetArn)
ARN of the physical target where the log events will be delivered (eg.
|
public void setDestinationName(String destinationName)
Name of the destination.
destinationName
- Name of the destination.public String getDestinationName()
Name of the destination.
public Destination withDestinationName(String destinationName)
Name of the destination.
destinationName
- Name of the destination.public void setTargetArn(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 String getTargetArn()
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
public Destination withTargetArn(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(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 String getRoleArn()
A role for impersonation for delivering log events to the target.
public Destination withRoleArn(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(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)
ARN of this destination.
arn
- ARN of this destination.public String getArn()
ARN of this destination.
public Destination withArn(String arn)
ARN of this destination.
arn
- ARN of this destination.public 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.
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 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(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 String toString()
toString
in class Object
Object.toString()
public Destination clone()
Copyright © 2018. All rights reserved.