public class PutRetentionPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutRetentionPolicyRequest()
Default constructor for PutRetentionPolicyRequest object.
|
PutRetentionPolicyRequest(String logGroupName,
Integer retentionInDays)
Constructs a new PutRetentionPolicyRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
PutRetentionPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getLogGroupName()
The name of the log group to associate the retention policy with.
|
Integer |
getRetentionInDays() |
int |
hashCode() |
void |
setLogGroupName(String logGroupName)
The name of the log group to associate the retention policy with.
|
void |
setRetentionInDays(Integer retentionInDays) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRetentionPolicyRequest |
withLogGroupName(String logGroupName)
The name of the log group to associate the retention policy with.
|
PutRetentionPolicyRequest |
withRetentionInDays(Integer retentionInDays) |
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic PutRetentionPolicyRequest()
public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays)
logGroupName - The name of the log group to associate the retention policy with.retentionInDays - public void setLogGroupName(String logGroupName)
The name of the log group to associate the retention policy with.
logGroupName - The name of the log group to associate the retention policy with.public String getLogGroupName()
The name of the log group to associate the retention policy with.
public PutRetentionPolicyRequest withLogGroupName(String logGroupName)
The name of the log group to associate the retention policy with.
logGroupName - The name of the log group to associate the retention policy with.public void setRetentionInDays(Integer retentionInDays)
retentionInDays - public Integer getRetentionInDays()
public PutRetentionPolicyRequest withRetentionInDays(Integer retentionInDays)
retentionInDays - public String toString()
toString in class ObjectObject.toString()public PutRetentionPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.