public class PutRetentionPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
logGroupName
The name of the log group to associate the retention policy with.
|
private java.lang.Integer |
retentionInDays |
NOOP
Constructor and Description |
---|
PutRetentionPolicyRequest()
Default constructor for PutRetentionPolicyRequest object.
|
PutRetentionPolicyRequest(java.lang.String logGroupName,
java.lang.Integer retentionInDays)
Constructs a new PutRetentionPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
PutRetentionPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLogGroupName()
The name of the log group to associate the retention policy with.
|
java.lang.Integer |
getRetentionInDays() |
int |
hashCode() |
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the retention policy with.
|
void |
setRetentionInDays(java.lang.Integer retentionInDays) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRetentionPolicyRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the retention policy with.
|
PutRetentionPolicyRequest |
withRetentionInDays(java.lang.Integer retentionInDays) |
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
private java.lang.String logGroupName
The name of the log group to associate the retention policy with.
private java.lang.Integer retentionInDays
public PutRetentionPolicyRequest()
public PutRetentionPolicyRequest(java.lang.String logGroupName, java.lang.Integer retentionInDays)
logGroupName
- The name of the log group to associate the retention policy with.retentionInDays
- public void setLogGroupName(java.lang.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 java.lang.String getLogGroupName()
The name of the log group to associate the retention policy with.
public PutRetentionPolicyRequest withLogGroupName(java.lang.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(java.lang.Integer retentionInDays)
retentionInDays
- public java.lang.Integer getRetentionInDays()
public PutRetentionPolicyRequest withRetentionInDays(java.lang.Integer retentionInDays)
retentionInDays
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutRetentionPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()