Interface AssetPermission.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssetPermission.Builder,,AssetPermission> SdkBuilder<AssetPermission.Builder,,AssetPermission> SdkPojo
- Enclosing class:
AssetPermission
@Mutable
@NotThreadSafe
public static interface AssetPermission.Builder
extends SdkPojo, CopyableBuilder<AssetPermission.Builder,AssetPermission>
-
Method Summary
Modifier and TypeMethodDescriptionThe asset ID as part of the asset permissions.default AssetPermission.Builderpermissions(Consumer<Permissions.Builder> permissions) The details as part of the asset permissions.permissions(Permissions permissions) The details as part of the asset permissions.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
-
assetId
The asset ID as part of the asset permissions.
- Parameters:
assetId- The asset ID as part of the asset permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
The details as part of the asset permissions.
- Parameters:
permissions- The details as part of the asset permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
The details as part of the asset permissions.
This is a convenience method that creates an instance of thePermissions.Builderavoiding the need to create one manually viaPermissions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissions(Permissions).- Parameters:
permissions- a consumer that will call methods onPermissions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-