Interface LabelOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LabelOptions.Builder,
,LabelOptions> SdkBuilder<LabelOptions.Builder,
,LabelOptions> SdkPojo
- Enclosing class:
LabelOptions
public static interface LabelOptions.Builder
extends SdkPojo, CopyableBuilder<LabelOptions.Builder,LabelOptions>
-
Method Summary
Modifier and TypeMethodDescriptioncustomLabel
(String customLabel) The text for the label.default LabelOptions.Builder
fontConfiguration
(Consumer<FontConfiguration.Builder> fontConfiguration) The font configuration of the label.fontConfiguration
(FontConfiguration fontConfiguration) The font configuration of the label.visibility
(String visibility) Determines whether or not the label is visible.visibility
(Visibility visibility) Determines whether or not the label is visible.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
-
visibility
Determines whether or not the label is visible.
- Parameters:
visibility
- Determines whether or not the label is visible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibility
Determines whether or not the label is visible.
- Parameters:
visibility
- Determines whether or not the label is visible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fontConfiguration
The font configuration of the label.
- Parameters:
fontConfiguration
- The font configuration of the label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fontConfiguration
default LabelOptions.Builder fontConfiguration(Consumer<FontConfiguration.Builder> fontConfiguration) The font configuration of the label.
This is a convenience method that creates an instance of theFontConfiguration.Builder
avoiding the need to create one manually viaFontConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofontConfiguration(FontConfiguration)
.- Parameters:
fontConfiguration
- a consumer that will call methods onFontConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customLabel
The text for the label.
- Parameters:
customLabel
- The text for the label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-