The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.
The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
name - The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.
type - The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.
doubleValue - When the doubleValue type is set, the value of the resource must be a double precision floating-point type.
longValue - When the longValue type is set, the value of the resource must be an extended precision floating-point type.
integerValue - When the integerValue type is set, the value of the resource must be an integer.
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.