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:
  • Constructor Details

    • Destination

      public Destination()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Destination clone()
      Overrides:
      clone in class Object