Interface ResourceMetadata.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceMetadata.Builder,,ResourceMetadata> SdkBuilder<ResourceMetadata.Builder,,ResourceMetadata> SdkPojo
- Enclosing class:
ResourceMetadata
public static interface ResourceMetadata.Builder
extends SdkPojo, CopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the resource.The name of the resource.originalName(String originalName) The original name of the resource before a rename operation.default ResourceMetadata.Builderowner(Consumer<UserMetadata.Builder> owner) The owner of the resource.owner(UserMetadata owner) The owner of the resource.The parent ID of the resource before a rename operation.The type of resource.type(ResourceType type) The type of resource.The version ID 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, sdkFields
-
Method Details
-
type
The type of resource.
- Parameters:
type- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of resource.
- Parameters:
type- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
originalName
The original name of the resource before a rename operation.
- Parameters:
originalName- The original name of the resource before a rename operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The ID of the resource.
- Parameters:
id- The ID of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
The version ID of the resource. This is an optional field and is filled for action on document version.
- Parameters:
versionId- The version ID of the resource. This is an optional field and is filled for action on document version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
The owner of the resource.
- Parameters:
owner- The owner of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
The owner of the resource.
This is a convenience method that creates an instance of theUserMetadata.Builderavoiding the need to create one manually viaUserMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toowner(UserMetadata).- Parameters:
owner- a consumer that will call methods onUserMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentId
The parent ID of the resource before a rename operation.
- Parameters:
parentId- The parent ID of the resource before a rename operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-