Interface Resource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Resource.Builder,,Resource> SdkBuilder<Resource.Builder,,Resource> SdkPojo
- Enclosing class:
Resource
@Mutable
@NotThreadSafe
public static interface Resource.Builder
extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
-
Method Summary
Modifier and TypeMethodDescriptiondoubleValue(Double doubleValue) When thedoubleValuetype is set, the value of the resource must be a double precision floating-point type.integerValue(Integer integerValue) When theintegerValuetype is set, the value of the resource must be an integer.When thelongValuetype is set, the value of the resource must be an extended precision floating-point type.The name of the resource, such asCPU,MEMORY,PORTS,PORTS_UDP, or a user-defined resource.stringSetValue(String... stringSetValue) When thestringSetValuetype is set, the value of the resource must be a string type.stringSetValue(Collection<String> stringSetValue) When thestringSetValuetype is set, the value of the resource must be a string type.The type of the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the resource, such as
CPU,MEMORY,PORTS,PORTS_UDP, or a user-defined resource.- Parameters:
name- The name of the resource, such asCPU,MEMORY,PORTS,PORTS_UDP, or a user-defined resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the resource. Valid values:
INTEGER,DOUBLE,LONG, orSTRINGSET.- Parameters:
type- The type of the resource. Valid values:INTEGER,DOUBLE,LONG, orSTRINGSET.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
doubleValue
When the
doubleValuetype is set, the value of the resource must be a double precision floating-point type.- Parameters:
doubleValue- When thedoubleValuetype is set, the value of the resource must be a double precision floating-point type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
longValue
When the
longValuetype is set, the value of the resource must be an extended precision floating-point type.- Parameters:
longValue- When thelongValuetype is set, the value of the resource must be an extended precision floating-point type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
integerValue
When the
integerValuetype is set, the value of the resource must be an integer.- Parameters:
integerValue- When theintegerValuetype is set, the value of the resource must be an integer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stringSetValue
When the
stringSetValuetype is set, the value of the resource must be a string type.- Parameters:
stringSetValue- When thestringSetValuetype is set, the value of the resource must be a string type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stringSetValue
When the
stringSetValuetype is set, the value of the resource must be a string type.- Parameters:
stringSetValue- When thestringSetValuetype is set, the value of the resource must be a string type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-