Class ContainerCreateParams.Body
-
- All Implemented Interfaces:
public final class ContainerCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classContainerCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringname()Name of the container to create. final Optional<ContainerCreateParams.ExpiresAfter>expiresAfter()Container expiration time in seconds relative to the 'anchor' time. final Optional<List<String>>fileIds()IDs of files to copy to the container. final Optional<ContainerCreateParams.MemoryLimit>memoryLimit()Optional memory limit for the container. final Optional<ContainerCreateParams.NetworkPolicy>networkPolicy()Network access policy for the container. final Optional<List<ContainerCreateParams.Skill>>skills()An optional list of skills referenced by id or inline data. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<ContainerCreateParams.ExpiresAfter>_expiresAfter()Returns the raw JSON value of expiresAfter. final JsonField<List<String>>_fileIds()Returns the raw JSON value of fileIds. final JsonField<ContainerCreateParams.MemoryLimit>_memoryLimit()Returns the raw JSON value of memoryLimit. final JsonField<ContainerCreateParams.NetworkPolicy>_networkPolicy()Returns the raw JSON value of networkPolicy. final JsonField<List<ContainerCreateParams.Skill>>_skills()Returns the raw JSON value of skills. final Map<String, JsonValue>_additionalProperties()final ContainerCreateParams.Body.BuildertoBuilder()final ContainerCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ContainerCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
expiresAfter
final Optional<ContainerCreateParams.ExpiresAfter> expiresAfter()
Container expiration time in seconds relative to the 'anchor' time.
-
memoryLimit
final Optional<ContainerCreateParams.MemoryLimit> memoryLimit()
Optional memory limit for the container. Defaults to "1g".
-
networkPolicy
final Optional<ContainerCreateParams.NetworkPolicy> networkPolicy()
Network access policy for the container.
-
skills
final Optional<List<ContainerCreateParams.Skill>> skills()
An optional list of skills referenced by id or inline data.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAfter
final JsonField<ContainerCreateParams.ExpiresAfter> _expiresAfter()
Returns the raw JSON value of expiresAfter.
Unlike expiresAfter, this method doesn't throw if the JSON field has an unexpected type.
-
_fileIds
final JsonField<List<String>> _fileIds()
Returns the raw JSON value of fileIds.
Unlike fileIds, this method doesn't throw if the JSON field has an unexpected type.
-
_memoryLimit
final JsonField<ContainerCreateParams.MemoryLimit> _memoryLimit()
Returns the raw JSON value of memoryLimit.
Unlike memoryLimit, this method doesn't throw if the JSON field has an unexpected type.
-
_networkPolicy
final JsonField<ContainerCreateParams.NetworkPolicy> _networkPolicy()
Returns the raw JSON value of networkPolicy.
Unlike networkPolicy, this method doesn't throw if the JSON field has an unexpected type.
-
_skills
final JsonField<List<ContainerCreateParams.Skill>> _skills()
Returns the raw JSON value of skills.
Unlike skills, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ContainerCreateParams.Body.Builder toBuilder()
-
validate
final ContainerCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ContainerCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.name()
-
-
-
-