Interface Resource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Resource.Builder,,Resource> SdkBuilder<Resource.Builder,,Resource> SdkPojo
- Enclosing class:
Resource
@Mutable
@NotThreadSafe
public static interface Resource.Builder
extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the resource.default Resource.Buildertype(Consumer<ResourceType.Builder> type) The type of the resource.type(ResourceType type) The type of the resource.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
-
name
The name of the resource.
- Parameters:
name- The name of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the resource.
- Parameters:
type- The type of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the resource.
This is a convenience method that creates an instance of theResourceType.Builderavoiding the need to create one manually viaResourceType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totype(ResourceType).- Parameters:
type- a consumer that will call methods onResourceType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-