public static interface Resource.Builder extends CopyableBuilder<Resource.Builder,Resource>
| Modifier and Type | Method and Description |
|---|---|
Resource.Builder |
doubleValue(Double doubleValue)
When the
doubleValue type is set, the value of the resource must be a double precision
floating-point type. |
Resource.Builder |
integerValue(Integer integerValue)
When the
integerValue type is set, the value of the resource must be an integer. |
Resource.Builder |
longValue(Long longValue)
When the
longValue type is set, the value of the resource must be an extended precision
floating-point type. |
Resource.Builder |
name(String name)
The name of the resource, such as
cpu, memory, ports, or a
user-defined resource. |
Resource.Builder |
stringSetValue(Collection<String> stringSetValue)
When the
stringSetValue type is set, the value of the resource must be a string type. |
Resource.Builder |
stringSetValue(String... stringSetValue)
When the
stringSetValue type is set, the value of the resource must be a string type. |
Resource.Builder |
type(String type)
The type of the resource, such as
INTEGER, DOUBLE, LONG, or
STRINGSET. |
copyapply, buildResource.Builder name(String name)
The name of the resource, such as cpu, memory, ports, or a
user-defined resource.
name - The name of the resource, such as cpu, memory, ports, or a
user-defined resource.Resource.Builder type(String type)
The type of the resource, such as INTEGER, DOUBLE, LONG, or
STRINGSET.
type - The type of the resource, such as INTEGER, DOUBLE, LONG, or
STRINGSET.Resource.Builder doubleValue(Double doubleValue)
When the doubleValue type is set, the value of the resource must be a double precision
floating-point type.
doubleValue - When the doubleValue type is set, the value of the resource must be a double precision
floating-point type.Resource.Builder longValue(Long longValue)
When the longValue type is set, the value of the resource must be an extended precision
floating-point type.
longValue - When the longValue type is set, the value of the resource must be an extended precision
floating-point type.Resource.Builder integerValue(Integer integerValue)
When the integerValue type is set, the value of the resource must be an integer.
integerValue - When the integerValue type is set, the value of the resource must be an integer.Resource.Builder stringSetValue(Collection<String> stringSetValue)
When the stringSetValue type is set, the value of the resource must be a string type.
stringSetValue - When the stringSetValue type is set, the value of the resource must be a string type.Resource.Builder stringSetValue(String... stringSetValue)
When the stringSetValue type is set, the value of the resource must be a string type.
stringSetValue - When the stringSetValue type is set, the value of the resource must be a string type.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.