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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Resource.Builder
doubleValue(Double doubleValue)
When thedoubleValue
type is set, the value of the resource must be a double precision floating-point type.Resource.Builder
integerValue(Integer integerValue)
When theintegerValue
type is set, the value of the resource must be an integer.Resource.Builder
longValue(Long longValue)
When thelongValue
type is set, the value of the resource must be an extended precision floating-point type.Resource.Builder
name(String name)
The name of the resource, such asCPU
,MEMORY
,PORTS
,PORTS_UDP
, or a user-defined resource.Resource.Builder
stringSetValue(String... stringSetValue)
When thestringSetValue
type is set, the value of the resource must be a string type.Resource.Builder
stringSetValue(Collection<String> stringSetValue)
When thestringSetValue
type is set, the value of the resource must be a string type.Resource.Builder
type(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 Detail
-
name
Resource.Builder name(String 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
Resource.Builder type(String 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
Resource.Builder doubleValue(Double 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
Resource.Builder longValue(Long 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
Resource.Builder integerValue(Integer 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
Resource.Builder stringSetValue(Collection<String> 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
Resource.Builder stringSetValue(String... 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.
-
-