@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PermissionModel extends Object implements Serializable, Cloneable, StructuredPojo
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
| Constructor and Description | 
|---|
| PermissionModel() | 
| Modifier and Type | Method and Description | 
|---|---|
| PermissionModel | clone() | 
| boolean | equals(Object obj) | 
| List<String> | getCrossAccountRoleArns()
 Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. | 
| String | getInvokerRoleName()
 Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by
 Resilience Hub Service Principle to obtain a read-only access to your application resources while running an
 assessment. | 
| String | getType()
 Defines how Resilience Hub scans your resources. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setCrossAccountRoleArns(Collection<String> crossAccountRoleArns)
 Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. | 
| void | setInvokerRoleName(String invokerRoleName)
 Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by
 Resilience Hub Service Principle to obtain a read-only access to your application resources while running an
 assessment. | 
| void | setType(String type)
 Defines how Resilience Hub scans your resources. | 
| String | toString()Returns a string representation of this object. | 
| PermissionModel | withCrossAccountRoleArns(Collection<String> crossAccountRoleArns)
 Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. | 
| PermissionModel | withCrossAccountRoleArns(String... crossAccountRoleArns)
 Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. | 
| PermissionModel | withInvokerRoleName(String invokerRoleName)
 Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by
 Resilience Hub Service Principle to obtain a read-only access to your application resources while running an
 assessment. | 
| PermissionModel | withType(PermissionModelType type)
 Defines how Resilience Hub scans your resources. | 
| PermissionModel | withType(String type)
 Defines how Resilience Hub scans your resources. | 
public List<String> getCrossAccountRoleArns()
Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
 These roles must have a trust policy with iam:AssumeRole permission to the invoker role in the
 primary account.
 
These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
         These roles must have a trust policy with iam:AssumeRole permission to the invoker role in
         the primary account.
         
public void setCrossAccountRoleArns(Collection<String> crossAccountRoleArns)
Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
 These roles must have a trust policy with iam:AssumeRole permission to the invoker role in the
 primary account.
 
crossAccountRoleArns - Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for
        querying purposes while importing resources and assessing your application. These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
        These roles must have a trust policy with iam:AssumeRole permission to the invoker role in
        the primary account.
        
public PermissionModel withCrossAccountRoleArns(String... crossAccountRoleArns)
Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
 These roles must have a trust policy with iam:AssumeRole permission to the invoker role in the
 primary account.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setCrossAccountRoleArns(java.util.Collection) or withCrossAccountRoleArns(java.util.Collection)
 if you want to override the existing values.
 
crossAccountRoleArns - Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for
        querying purposes while importing resources and assessing your application. These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
        These roles must have a trust policy with iam:AssumeRole permission to the invoker role in
        the primary account.
        
public PermissionModel withCrossAccountRoleArns(Collection<String> crossAccountRoleArns)
Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
 These roles must have a trust policy with iam:AssumeRole permission to the invoker role in the
 primary account.
 
crossAccountRoleArns - Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for
        querying purposes while importing resources and assessing your application. These ARNs are required only when your resources are in other accounts and you have different role name in these accounts. Else, the invoker role name will be used in the other accounts.
        These roles must have a trust policy with iam:AssumeRole permission to the invoker role in
        the primary account.
        
public void setInvokerRoleName(String invokerRoleName)
Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.
 You must have iam:passRole permission for this role while creating or updating the application.
 
 Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
 
invokerRoleName - Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed
        by Resilience Hub Service Principle to obtain a read-only access to your application resources while
        running an assessment. 
        You must have iam:passRole permission for this role while creating or updating the
        application.
        
        Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
        
public String getInvokerRoleName()
Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.
 You must have iam:passRole permission for this role while creating or updating the application.
 
 Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
 
         You must have iam:passRole permission for this role while creating or updating the
         application.
         
         Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
         
public PermissionModel withInvokerRoleName(String invokerRoleName)
Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.
 You must have iam:passRole permission for this role while creating or updating the application.
 
 Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
 
invokerRoleName - Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed
        by Resilience Hub Service Principle to obtain a read-only access to your application resources while
        running an assessment. 
        You must have iam:passRole permission for this role while creating or updating the
        application.
        
        Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.
        
public void setType(String type)
Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your Amazon Web Services account, or by using the credentials of the current IAM user.
type - Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing
        role in your Amazon Web Services account, or by using the credentials of the current IAM user.PermissionModelTypepublic String getType()
Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your Amazon Web Services account, or by using the credentials of the current IAM user.
PermissionModelTypepublic PermissionModel withType(String type)
Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your Amazon Web Services account, or by using the credentials of the current IAM user.
type - Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing
        role in your Amazon Web Services account, or by using the credentials of the current IAM user.PermissionModelTypepublic PermissionModel withType(PermissionModelType type)
Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your Amazon Web Services account, or by using the credentials of the current IAM user.
type - Defines how Resilience Hub scans your resources. It can scan for the resources by using a pre-existing
        role in your Amazon Web Services account, or by using the credentials of the current IAM user.PermissionModelTypepublic String toString()
toString in class ObjectObject.toString()public PermissionModel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.