Interface Resource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Resource.Builder,
,Resource> SdkBuilder<Resource.Builder,
,Resource> SdkPojo
- Enclosing class:
Resource
public static interface Resource.Builder
extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
-
Method Summary
Modifier and TypeMethodDescriptiondoubleValue
(Double doubleValue) When thedoubleValue
type is set, the value of the resource must be a double precision floating-point type.integerValue
(Integer integerValue) When theintegerValue
type is set, the value of the resource must be an integer.When thelongValue
type 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 thestringSetValue
type is set, the value of the resource must be a string type.stringSetValue
(Collection<String> stringSetValue) When thestringSetValue
type 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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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
doubleValue
type is set, the value of the resource must be a double precision floating-point type.- Parameters:
doubleValue
- When thedoubleValue
type 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
longValue
type is set, the value of the resource must be an extended precision floating-point type.- Parameters:
longValue
- When thelongValue
type 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
integerValue
type is set, the value of the resource must be an integer.- Parameters:
integerValue
- When theintegerValue
type 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
stringSetValue
type is set, the value of the resource must be a string type.- Parameters:
stringSetValue
- When thestringSetValue
type 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
stringSetValue
type is set, the value of the resource must be a string type.- Parameters:
stringSetValue
- When thestringSetValue
type 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.
-