@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ulimit extends Object implements Serializable, Cloneable, StructuredPojo
The ulimit
settings to pass to the container.
Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the
exception of the nofile
resource limit parameter which Fargate overrides. The nofile
resource limit sets a restriction on the number of open files that a container can use. The default
nofile
soft limit is 1024
and the default hard limit is 65535
.
You can specify the ulimit
settings for a container in a task definition.
Constructor and Description |
---|
Ulimit() |
Modifier and Type | Method and Description |
---|---|
Ulimit |
clone() |
boolean |
equals(Object obj) |
Integer |
getHardLimit()
The hard limit for the
ulimit type. |
String |
getName()
The
type of the ulimit . |
Integer |
getSoftLimit()
The soft limit for the
ulimit type. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHardLimit(Integer hardLimit)
The hard limit for the
ulimit type. |
void |
setName(String name)
The
type of the ulimit . |
void |
setName(UlimitName name)
The
type of the ulimit . |
void |
setSoftLimit(Integer softLimit)
The soft limit for the
ulimit type. |
String |
toString()
Returns a string representation of this object.
|
Ulimit |
withHardLimit(Integer hardLimit)
The hard limit for the
ulimit type. |
Ulimit |
withName(String name)
The
type of the ulimit . |
Ulimit |
withName(UlimitName name)
The
type of the ulimit . |
Ulimit |
withSoftLimit(Integer softLimit)
The soft limit for the
ulimit type. |
public void setName(String name)
The type
of the ulimit
.
name
- The type
of the ulimit
.UlimitName
public String getName()
The type
of the ulimit
.
type
of the ulimit
.UlimitName
public Ulimit withName(String name)
The type
of the ulimit
.
name
- The type
of the ulimit
.UlimitName
public void setName(UlimitName name)
The type
of the ulimit
.
name
- The type
of the ulimit
.UlimitName
public Ulimit withName(UlimitName name)
The type
of the ulimit
.
name
- The type
of the ulimit
.UlimitName
public void setSoftLimit(Integer softLimit)
The soft limit for the ulimit
type.
softLimit
- The soft limit for the ulimit
type.public Integer getSoftLimit()
The soft limit for the ulimit
type.
ulimit
type.public Ulimit withSoftLimit(Integer softLimit)
The soft limit for the ulimit
type.
softLimit
- The soft limit for the ulimit
type.public void setHardLimit(Integer hardLimit)
The hard limit for the ulimit
type.
hardLimit
- The hard limit for the ulimit
type.public Integer getHardLimit()
The hard limit for the ulimit
type.
ulimit
type.public Ulimit withHardLimit(Integer hardLimit)
The hard limit for the ulimit
type.
hardLimit
- The hard limit for the ulimit
type.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.