@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccountAssignment extends Object implements Serializable, Cloneable, StructuredPojo
The assignment that indicates a principal's limited access to a specified AWS account with a specified permission set.
The term principal here refers to a user or group that is defined in AWS SSO.
Constructor and Description |
---|
AccountAssignment() |
Modifier and Type | Method and Description |
---|---|
AccountAssignment |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The identifier of the AWS account.
|
String |
getPermissionSetArn()
The ARN of the permission set.
|
String |
getPrincipalId()
The identifier of the principal.
|
String |
getPrincipalType()
The entity type for which the assignment will be created.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The identifier of the AWS account.
|
void |
setPermissionSetArn(String permissionSetArn)
The ARN of the permission set.
|
void |
setPrincipalId(String principalId)
The identifier of the principal.
|
void |
setPrincipalType(String principalType)
The entity type for which the assignment will be created.
|
String |
toString()
Returns a string representation of this object.
|
AccountAssignment |
withAccountId(String accountId)
The identifier of the AWS account.
|
AccountAssignment |
withPermissionSetArn(String permissionSetArn)
The ARN of the permission set.
|
AccountAssignment |
withPrincipalId(String principalId)
The identifier of the principal.
|
AccountAssignment |
withPrincipalType(PrincipalType principalType)
The entity type for which the assignment will be created.
|
AccountAssignment |
withPrincipalType(String principalType)
The entity type for which the assignment will be created.
|
public void setAccountId(String accountId)
The identifier of the AWS account.
accountId
- The identifier of the AWS account.public String getAccountId()
The identifier of the AWS account.
public AccountAssignment withAccountId(String accountId)
The identifier of the AWS account.
accountId
- The identifier of the AWS account.public void setPermissionSetArn(String permissionSetArn)
The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
permissionSetArn
- The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service
Namespaces in the AWS General Reference.public String getPermissionSetArn()
The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public AccountAssignment withPermissionSetArn(String permissionSetArn)
The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
permissionSetArn
- The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service
Namespaces in the AWS General Reference.public void setPrincipalType(String principalType)
The entity type for which the assignment will be created.
principalType
- The entity type for which the assignment will be created.PrincipalType
public String getPrincipalType()
The entity type for which the assignment will be created.
PrincipalType
public AccountAssignment withPrincipalType(String principalType)
The entity type for which the assignment will be created.
principalType
- The entity type for which the assignment will be created.PrincipalType
public AccountAssignment withPrincipalType(PrincipalType principalType)
The entity type for which the assignment will be created.
principalType
- The entity type for which the assignment will be created.PrincipalType
public void setPrincipalId(String principalId)
The identifier of the principal.
principalId
- The identifier of the principal.public String getPrincipalId()
The identifier of the principal.
public AccountAssignment withPrincipalId(String principalId)
The identifier of the principal.
principalId
- The identifier of the principal.public String toString()
toString
in class Object
Object.toString()
public AccountAssignment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.