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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutDestinationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutDestinationRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDestinationName()
A name for the destination.String
getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.String
getTargetArn()
The ARN of an Amazon Kinesis stream to deliver matching log events to.int
hashCode()
void
setDestinationName(String destinationName)
A name for the destination.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.void
setTargetArn(String targetArn)
The ARN of an Amazon Kinesis stream to deliver matching log events to.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutDestinationRequest
withDestinationName(String destinationName)
A name for the destination.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.PutDestinationRequest
withTargetArn(String targetArn)
The ARN of an Amazon Kinesis stream to deliver matching log events to.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-