StructuredPojo
, ToCopyableBuilder<Resource.Builder,Resource>
@Generated("software.amazon.awssdk:codegen") public class Resource extends Object implements StructuredPojo, ToCopyableBuilder<Resource.Builder,Resource>
Describes the resources available for a container instance.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Resource.Builder |
Modifier and Type | Method | 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) |
|
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. |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The name of the resource, such as
cpu , memory , ports , or a user-defined
resource. |
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 . |
public String name()
The name of the resource, such as cpu
, memory
, ports
, or a user-defined
resource.
cpu
, memory
, ports
, 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.
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.