@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerLogRotationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The settings for container log rotation.
Constructor and Description |
---|
ContainerLogRotationConfiguration() |
Modifier and Type | Method and Description |
---|---|
ContainerLogRotationConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxFilesToKeep()
The number of files to keep in container after rotation.
|
String |
getRotationSize()
The file size at which to rotate logs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxFilesToKeep(Integer maxFilesToKeep)
The number of files to keep in container after rotation.
|
void |
setRotationSize(String rotationSize)
The file size at which to rotate logs.
|
String |
toString()
Returns a string representation of this object.
|
ContainerLogRotationConfiguration |
withMaxFilesToKeep(Integer maxFilesToKeep)
The number of files to keep in container after rotation.
|
ContainerLogRotationConfiguration |
withRotationSize(String rotationSize)
The file size at which to rotate logs.
|
public void setRotationSize(String rotationSize)
The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.
rotationSize
- The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.public String getRotationSize()
The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.
public ContainerLogRotationConfiguration withRotationSize(String rotationSize)
The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.
rotationSize
- The file size at which to rotate logs. Minimum of 2KB, Maximum of 2GB.public void setMaxFilesToKeep(Integer maxFilesToKeep)
The number of files to keep in container after rotation.
maxFilesToKeep
- The number of files to keep in container after rotation.public Integer getMaxFilesToKeep()
The number of files to keep in container after rotation.
public ContainerLogRotationConfiguration withMaxFilesToKeep(Integer maxFilesToKeep)
The number of files to keep in container after rotation.
maxFilesToKeep
- The number of files to keep in container after rotation.public String toString()
toString
in class Object
Object.toString()
public ContainerLogRotationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.