public static final class FromRoleArnOptions.Builder
extends java.lang.Object
FromRoleArnOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FromRoleArnOptions.Builder |
addGrantsToResources(java.lang.Boolean addGrantsToResources)
Sets the value of
FromRoleArnOptions.getAddGrantsToResources() |
FromRoleArnOptions |
build()
Builds the configured instance.
|
FromRoleArnOptions.Builder |
mutable(java.lang.Boolean mutable)
Sets the value of
FromRoleArnOptions.getMutable() |
public FromRoleArnOptions.Builder addGrantsToResources(java.lang.Boolean addGrantsToResources)
FromRoleArnOptions.getAddGrantsToResources()
addGrantsToResources
- For immutable roles: add grants to resources instead of dropping them.
If this is false
or not specified, grant permissions added to this role are ignored.
It is your own responsibility to make sure the role has the required permissions.
If this is true
, any grant permissions will be added to the resource instead.
this
public FromRoleArnOptions.Builder mutable(java.lang.Boolean mutable)
FromRoleArnOptions.getMutable()
mutable
- Whether the imported role can be modified by attaching policy resources to it.this
public FromRoleArnOptions build()
FromRoleArnOptions
java.lang.NullPointerException
- if any required attribute was not provided