Interface NamespaceKeyEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NamespaceKeyEntry.Builder,,NamespaceKeyEntry> SdkBuilder<NamespaceKeyEntry.Builder,,NamespaceKeyEntry> SdkPojo
- Enclosing class:
NamespaceKeyEntry
@Mutable
@NotThreadSafe
public static interface NamespaceKeyEntry.Builder
extends SdkPojo, CopyableBuilder<NamespaceKeyEntry.Builder,NamespaceKeyEntry>
-
Method Summary
Modifier and TypeMethodDescriptionThe namespace variable key name.default NamespaceKeyEntry.Buildervalidation(Consumer<NamespaceKeyValidation.Builder> validation) The validation rules that constrain values for this namespace variable at runtime (CreateEventAPI).validation(NamespaceKeyValidation validation) The validation rules that constrain values for this namespace variable at runtime (CreateEventAPI).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
key
The namespace variable key name.
- Parameters:
key- The namespace variable key name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validation
The validation rules that constrain values for this namespace variable at runtime (
CreateEventAPI).- Parameters:
validation- The validation rules that constrain values for this namespace variable at runtime (CreateEventAPI).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validation
The validation rules that constrain values for this namespace variable at runtime (
This is a convenience method that creates an instance of theCreateEventAPI).NamespaceKeyValidation.Builderavoiding the need to create one manually viaNamespaceKeyValidation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalidation(NamespaceKeyValidation).- Parameters:
validation- a consumer that will call methods onNamespaceKeyValidation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-