Interface RatingScaleItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RatingScaleItem.Builder,RatingScaleItem>,SdkBuilder<RatingScaleItem.Builder,RatingScaleItem>,SdkPojo
- Enclosing class:
- RatingScaleItem
@Mutable @NotThreadSafe public static interface RatingScaleItem.Builder extends SdkPojo, CopyableBuilder<RatingScaleItem.Builder,RatingScaleItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RatingScaleItem.Builderdefinition(String definition)Defines the definition for one rating in a custom metric rating scale.default RatingScaleItem.Buildervalue(Consumer<RatingScaleItemValue.Builder> value)Defines the value for one rating in a custom metric rating scale.RatingScaleItem.Buildervalue(RatingScaleItemValue value)Defines the value for one rating in a custom metric rating scale.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
definition
RatingScaleItem.Builder definition(String definition)
Defines the definition for one rating in a custom metric rating scale.
- Parameters:
definition- Defines the definition for one rating in a custom metric rating scale.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
RatingScaleItem.Builder value(RatingScaleItemValue value)
Defines the value for one rating in a custom metric rating scale.
- Parameters:
value- Defines the value for one rating in a custom metric rating scale.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default RatingScaleItem.Builder value(Consumer<RatingScaleItemValue.Builder> value)
Defines the value for one rating in a custom metric rating scale.
This is a convenience method that creates an instance of theRatingScaleItemValue.Builderavoiding the need to create one manually viaRatingScaleItemValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(RatingScaleItemValue).- Parameters:
value- a consumer that will call methods onRatingScaleItemValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(RatingScaleItemValue)
-
-