@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
Describes the resources available for a container instance.
Modifier and Type | Class and Description |
---|---|
static interface |
Resource.Builder |
Modifier and Type | Method and Description |
---|---|
static Resource.Builder |
builder() |
Double |
doubleValue()
When the
doubleValue type is set, the value of the resource must be a double precision
floating-point type. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
integerValue()
When the
integerValue type is set, the value of the resource must be an integer. |
Long |
longValue()
When the
longValue type is set, the value of the resource must be an extended precision
floating-point type. |
String |
name()
The name of the resource, such as
CPU , MEMORY , PORTS ,
PORTS_UDP , or a user-defined resource. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
List<String> |
stringSetValue()
When the
stringSetValue type is set, the value of the resource must be a string type. |
Resource.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
type()
The type of the resource, such as
INTEGER , DOUBLE , LONG , or
STRINGSET . |
copy
public String name()
The name of the resource, such as CPU
, MEMORY
, PORTS
,
PORTS_UDP
, or a user-defined resource.
CPU
, MEMORY
, PORTS
,
PORTS_UDP
, or a user-defined resource.public String type()
The type of the resource, such as INTEGER
, DOUBLE
, LONG
, or
STRINGSET
.
INTEGER
, DOUBLE
, LONG
, or
STRINGSET
.public Double doubleValue()
When the doubleValue
type is set, the value of the resource must be a double precision
floating-point type.
doubleValue
type is set, the value of the resource must be a double precision
floating-point type.public Long longValue()
When the longValue
type is set, the value of the resource must be an extended precision
floating-point type.
longValue
type is set, the value of the resource must be an extended precision
floating-point type.public Integer integerValue()
When the integerValue
type is set, the value of the resource must be an integer.
integerValue
type is set, the value of the resource must be an integer.public List<String> stringSetValue()
When the stringSetValue
type is set, the value of the resource must be a string type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
stringSetValue
type is set, the value of the resource must be a string type.public Resource.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Resource.Builder,Resource>
public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.