@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  doubleValuetype is set, the value of the resource must be a double precision
 floating-point type. | 
| Integer | getIntegerValue()
 When the  integerValuetype is set, the value of the resource must be an integer. | 
| Long | getLongValue()
 When the  longValuetype 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,PORTS_UDP, or a user-defined resource. | 
| List<String> | getStringSetValue()
 When the  stringSetValuetype is set, the value of the resource must be a string type. | 
| String | getType()
 The type of the resource, such as  INTEGER,DOUBLE,LONG, orSTRINGSET. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller) | 
| void | setDoubleValue(Double doubleValue)
 When the  doubleValuetype is set, the value of the resource must be a double precision
 floating-point type. | 
| void | setIntegerValue(Integer integerValue)
 When the  integerValuetype is set, the value of the resource must be an integer. | 
| void | setLongValue(Long longValue)
 When the  longValuetype 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,PORTS_UDP, or a user-defined resource. | 
| void | setStringSetValue(Collection<String> stringSetValue)
 When the  stringSetValuetype 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, orSTRINGSET. | 
| String | toString()Returns a string representation of this object. | 
| Resource | withDoubleValue(Double doubleValue)
 When the  doubleValuetype is set, the value of the resource must be a double precision
 floating-point type. | 
| Resource | withIntegerValue(Integer integerValue)
 When the  integerValuetype is set, the value of the resource must be an integer. | 
| Resource | withLongValue(Long longValue)
 When the  longValuetype 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,PORTS_UDP, or a user-defined resource. | 
| Resource | withStringSetValue(Collection<String> stringSetValue)
 When the  stringSetValuetype is set, the value of the resource must be a string type. | 
| Resource | withStringSetValue(String... stringSetValue)
 When the  stringSetValuetype 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, orSTRINGSET. | 
public void setName(String name)
 The name of the resource, such as CPU, MEMORY, PORTS,
 PORTS_UDP, or a user-defined resource.
 
name - The name of the resource, such as CPU, MEMORY, PORTS,
        PORTS_UDP, or a user-defined resource.public String getName()
 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 Resource withName(String name)
 The name of the resource, such as CPU, MEMORY, PORTS,
 PORTS_UDP, or a user-defined resource.
 
name - The name of the resource, such as CPU, MEMORY, PORTS,
        PORTS_UDP, 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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.