@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Describes the resources available for a container instance.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
Double |
getDoubleValue()
When the
doubleValue type is set, the value of the resource must be a double precision
floating-point type. |
Integer |
getIntegerValue()
When the
integerValue type is set, the value of the resource must be an integer. |
Long |
getLongValue()
When the
longValue type is set, the value of the resource must be an extended precision
floating-point type. |
String |
getName()
The name of the resource, such as
cpu , memory , ports , or a user-defined
resource. |
List<String> |
getStringSetValue()
When the
stringSetValue type is set, the value of the resource must be a string type. |
String |
getType()
The type of the resource, such as
INTEGER , DOUBLE , LONG , or
STRINGSET . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDoubleValue(Double doubleValue)
When the
doubleValue type is set, the value of the resource must be a double precision
floating-point type. |
void |
setIntegerValue(Integer integerValue)
When the
integerValue type is set, the value of the resource must be an integer. |
void |
setLongValue(Long longValue)
When the
longValue type is set, the value of the resource must be an extended precision
floating-point type. |
void |
setName(String name)
The name of the resource, such as
cpu , memory , ports , or a user-defined
resource. |
void |
setStringSetValue(Collection<String> stringSetValue)
When the
stringSetValue type is set, the value of the resource must be a string type. |
void |
setType(String type)
The type of the resource, such as
INTEGER , DOUBLE , LONG , or
STRINGSET . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Resource |
withDoubleValue(Double doubleValue)
When the
doubleValue type is set, the value of the resource must be a double precision
floating-point type. |
Resource |
withIntegerValue(Integer integerValue)
When the
integerValue type is set, the value of the resource must be an integer. |
Resource |
withLongValue(Long longValue)
When the
longValue type is set, the value of the resource must be an extended precision
floating-point type. |
Resource |
withName(String name)
The name of the resource, such as
cpu , memory , ports , or a user-defined
resource. |
Resource |
withStringSetValue(Collection<String> stringSetValue)
When the
stringSetValue type is set, the value of the resource must be a string type. |
Resource |
withStringSetValue(String... stringSetValue)
When the
stringSetValue type is set, the value of the resource must be a string type. |
Resource |
withType(String type)
The type of the resource, such as
INTEGER , DOUBLE , LONG , or
STRINGSET . |
public void setName(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.public String getName()
The name of the resource, such as cpu
, memory
, ports
, or a user-defined
resource.
cpu
, memory
, ports
, or a
user-defined resource.public Resource withName(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.public void setType(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
.public String getType()
The type of the resource, such as INTEGER
, DOUBLE
, LONG
, or
STRINGSET
.
INTEGER
, DOUBLE
, LONG
, or
STRINGSET
.public Resource withType(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
.public void setDoubleValue(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.public Double getDoubleValue()
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 Resource withDoubleValue(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.public void setLongValue(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.public Long getLongValue()
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 Resource withLongValue(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.public void setIntegerValue(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.public Integer getIntegerValue()
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 Resource withIntegerValue(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.public List<String> getStringSetValue()
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 void setStringSetValue(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.public Resource withStringSetValue(String... stringSetValue)
When the stringSetValue
type is set, the value of the resource must be a string type.
NOTE: This method appends the values to the existing list (if any). Use
setStringSetValue(java.util.Collection)
or withStringSetValue(java.util.Collection)
if you want
to override the existing values.
stringSetValue
- When the stringSetValue
type is set, the value of the resource must be a string type.public Resource withStringSetValue(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.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.