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.BuilderdoubleValue(Double doubleValue)When thedoubleValuetype is set, the value of the resource must be a double precision floating-point type.Resource.BuilderintegerValue(Integer integerValue)When theintegerValuetype is set, the value of the resource must be an integer.Resource.BuilderlongValue(Long longValue)When thelongValuetype is set, the value of the resource must be an extended precision floating-point type.Resource.Buildername(String name)The name of the resource, such asCPU,MEMORY,PORTS,PORTS_UDP, or a user-defined resource.Resource.BuilderstringSetValue(String... stringSetValue)When thestringSetValuetype is set, the value of the resource must be a string type.Resource.BuilderstringSetValue(Collection<String> stringSetValue)When thestringSetValuetype is set, the value of the resource must be a string type.Resource.Buildertype(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
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
Resource.Builder longValue(Long 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
Resource.Builder integerValue(Integer 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
Resource.Builder stringSetValue(Collection<String> 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
Resource.Builder stringSetValue(String... 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.
-
-