@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLogGroupName()
The name of the log group.
|
Integer |
getRetentionInDays() |
int |
hashCode() |
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setRetentionInDays(Integer retentionInDays) |
String |
toString()
Returns a string representation of this object.
|
PutRetentionPolicyRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
PutRetentionPolicyRequest |
withRetentionInDays(Integer retentionInDays) |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public PutRetentionPolicyRequest()
public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays)
logGroupName
- The name of the log group.retentionInDays
- public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public PutRetentionPolicyRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public void setRetentionInDays(Integer retentionInDays)
retentionInDays
- public Integer getRetentionInDays()
public PutRetentionPolicyRequest withRetentionInDays(Integer retentionInDays)
retentionInDays
- public String toString()
toString
in class Object
Object.toString()
public PutRetentionPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()