Class PutRetentionPolicyRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.logs.model.PutRetentionPolicyRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
public class PutRetentionPolicyRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PutRetentionPolicyRequest object.PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays) Constructs a new PutRetentionPolicyRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe name of the log group to associate the retention policy with.inthashCode()voidsetLogGroupName(String logGroupName) The name of the log group to associate the retention policy with.voidsetRetentionInDays(Integer retentionInDays) toString()Returns a string representation of this object; useful for testing and debugging.withLogGroupName(String logGroupName) The name of the log group to associate the retention policy with.withRetentionInDays(Integer retentionInDays) Methods inherited from class 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
-
Constructor Details
-
PutRetentionPolicyRequest
public PutRetentionPolicyRequest()Default constructor for PutRetentionPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
PutRetentionPolicyRequest
Constructs a new PutRetentionPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
logGroupName- The name of the log group to associate the retention policy with.retentionInDays-
-
-
Method Details
-
setLogGroupName
The name of the log group to associate the retention policy with.
- Parameters:
logGroupName- The name of the log group to associate the retention policy with.
-
getLogGroupName
The name of the log group to associate the retention policy with.
- Returns:
- The name of the log group to associate the retention policy with.
-
withLogGroupName
The name of the log group to associate the retention policy with.
- Parameters:
logGroupName- The name of the log group to associate the retention policy with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRetentionInDays
- Parameters:
retentionInDays-
-
getRetentionInDays
- Returns:
-
withRetentionInDays
- Parameters:
retentionInDays-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-