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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Destination clone()
-
-