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()
Returns the value of the RetentionInDays property for this object.
|
int |
hashCode() |
void |
setLogGroupName(String logGroupName)
The name of the log group to associate the retention policy with.
|
void |
setRetentionInDays(Integer retentionInDays)
Sets the value of the RetentionInDays property for this object.
|
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)
Sets the value of the RetentionInDays property for this object.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic PutRetentionPolicyRequest()
public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays)
logGroupName - The name of the log group to associate the retention policy with.retentionInDays - nullpublic 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 - The new value for the RetentionInDays property for this object.public Integer getRetentionInDays()
public PutRetentionPolicyRequest withRetentionInDays(Integer retentionInDays)
retentionInDays - The new value for the RetentionInDays property for this object.public String toString()
toString in class ObjectObject.toString()public PutRetentionPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.