Class Destination
- java.lang.Object
-
- com.amazonaws.services.logs.model.Destination
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Destination extends Object implements Serializable, Cloneable
A cross account destination that is the recipient of subscription log events.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Destination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Destinationclone()booleanequals(Object obj)StringgetAccessPolicy()An IAM policy document that governs which AWS accounts can create subscription filters against this destination.StringgetArn()ARN of this destination.LonggetCreationTime()A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.StringgetDestinationName()Name of the destination.StringgetRoleArn()A role for impersonation for delivering log events to the target.StringgetTargetArn()ARN of the physical target where the log events will be delivered (eg.inthashCode()voidsetAccessPolicy(String accessPolicy)An IAM policy document that governs which AWS accounts can create subscription filters against this destination.voidsetArn(String arn)ARN of this destination.voidsetCreationTime(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.voidsetDestinationName(String destinationName)Name of the destination.voidsetRoleArn(String roleArn)A role for impersonation for delivering log events to the target.voidsetTargetArn(String targetArn)ARN of the physical target where the log events will be delivered (eg.StringtoString()Returns a string representation of this object; useful for testing and debugging.DestinationwithAccessPolicy(String accessPolicy)An IAM policy document that governs which AWS accounts can create subscription filters against this destination.DestinationwithArn(String arn)ARN of this destination.DestinationwithCreationTime(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.DestinationwithDestinationName(String destinationName)Name of the destination.DestinationwithRoleArn(String roleArn)A role for impersonation for delivering log events to the target.DestinationwithTargetArn(String targetArn)ARN of the physical target where the log events will be delivered (eg.
-
-
-
Method Detail
-
setDestinationName
public void setDestinationName(String destinationName)
Name of the destination.
- Parameters:
destinationName- Name of the destination.
-
getDestinationName
public String getDestinationName()
Name of the destination.
- Returns:
- Name of the destination.
-
withDestinationName
public Destination withDestinationName(String destinationName)
Name of the destination.
- Parameters:
destinationName- Name of the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetArn
public void setTargetArn(String targetArn)
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Parameters:
targetArn- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
-
getTargetArn
public String getTargetArn()
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Returns:
- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
-
withTargetArn
public Destination withTargetArn(String targetArn)
ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).
- Parameters:
targetArn- ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
public void setRoleArn(String roleArn)
A role for impersonation for delivering log events to the target.
- Parameters:
roleArn- A role for impersonation for delivering log events to the target.
-
getRoleArn
public String getRoleArn()
A role for impersonation for delivering log events to the target.
- Returns:
- A role for impersonation for delivering log events to the target.
-
withRoleArn
public Destination withRoleArn(String roleArn)
A role for impersonation for delivering log events to the target.
- Parameters:
roleArn- A role for impersonation for delivering log events to the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccessPolicy
public void setAccessPolicy(String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Parameters:
accessPolicy- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
getAccessPolicy
public String getAccessPolicy()
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Returns:
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
withAccessPolicy
public Destination withAccessPolicy(String accessPolicy)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Parameters:
accessPolicy- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
public void setArn(String arn)
ARN of this destination.
- Parameters:
arn- ARN of this destination.
-
getArn
public String getArn()
ARN of this destination.
- Returns:
- ARN of this destination.
-
withArn
public Destination withArn(String arn)
ARN of this destination.
- Parameters:
arn- ARN of this destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
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.
- Parameters:
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.
-
getCreationTime
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.
- Returns:
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.
-
withCreationTime
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Destination clone()
-
-