Interface PermissionModel.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PermissionModel.Builder,,PermissionModel> SdkBuilder<PermissionModel.Builder,,PermissionModel> SdkPojo
- Enclosing class:
PermissionModel
@Mutable
@NotThreadSafe
public static interface PermissionModel.Builder
extends SdkPojo, CopyableBuilder<PermissionModel.Builder,PermissionModel>
-
Method Summary
Modifier and TypeMethodDescriptioncrossAccountRoles(Collection<CrossAccountRole> crossAccountRoles) The list of cross-account IAM role ARNs.crossAccountRoles(Consumer<CrossAccountRole.Builder>... crossAccountRoles) The list of cross-account IAM role ARNs.crossAccountRoles(CrossAccountRole... crossAccountRoles) The list of cross-account IAM role ARNs.invokerRoleName(String invokerRoleName) Sets the value of the InvokerRoleName property for this object.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
-
invokerRoleName
Sets the value of the InvokerRoleName property for this object.- Parameters:
invokerRoleName- The new value for the InvokerRoleName property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossAccountRoles
The list of cross-account IAM role ARNs.
- Parameters:
crossAccountRoles- The list of cross-account IAM role ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossAccountRoles
The list of cross-account IAM role ARNs.
- Parameters:
crossAccountRoles- The list of cross-account IAM role ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossAccountRoles
The list of cross-account IAM role ARNs.
This is a convenience method that creates an instance of theCrossAccountRole.Builderavoiding the need to create one manually viaCrossAccountRole.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocrossAccountRoles(List<CrossAccountRole>).- Parameters:
crossAccountRoles- a consumer that will call methods onCrossAccountRole.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-