Class PutDestinationRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.logs.model.PutDestinationRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class PutDestinationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • PutDestinationRequest

      public PutDestinationRequest()
  • Method Details

    • setDestinationName

      public void setDestinationName(String destinationName)

      A name for the destination.

      Parameters:
      destinationName - A name for the destination.
    • getDestinationName

      public String getDestinationName()

      A name for the destination.

      Returns:
      A name for the destination.
    • withDestinationName

      public PutDestinationRequest withDestinationName(String destinationName)

      A name for the destination.

      Parameters:
      destinationName - A name for the destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTargetArn

      public void setTargetArn(String targetArn)

      The ARN of an Amazon Kinesis stream to deliver matching log events to.

      Parameters:
      targetArn - The ARN of an Amazon Kinesis stream to deliver matching log events to.
    • getTargetArn

      public String getTargetArn()

      The ARN of an Amazon Kinesis stream to deliver matching log events to.

      Returns:
      The ARN of an Amazon Kinesis stream to deliver matching log events to.
    • withTargetArn

      public PutDestinationRequest withTargetArn(String targetArn)

      The ARN of an Amazon Kinesis stream to deliver matching log events to.

      Parameters:
      targetArn - The ARN of an Amazon Kinesis stream to deliver matching log events to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRoleArn

      public void setRoleArn(String roleArn)

      The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.

      Parameters:
      roleArn - The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.
    • getRoleArn

      public String getRoleArn()

      The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.

      Returns:
      The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.
    • withRoleArn

      public PutDestinationRequest withRoleArn(String roleArn)

      The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.

      Parameters:
      roleArn - The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.
      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 PutDestinationRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: