@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
Describes a principal for use with Resource Access Manager.
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The date and time when the principal was associated with the resource share.
|
Boolean |
getExternal()
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that
owns the resource share:
|
String |
getId()
The ID of the principal that can be associated with a resource share.
|
Date |
getLastUpdatedTime()
The date and time when the association between the resource share and the principal was last updated.
|
String |
getResourceShareArn()
The Amazon Resource Name
(ARN) of a resource share the principal is associated with.
|
int |
hashCode() |
Boolean |
isExternal()
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that
owns the resource share:
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreationTime(Date creationTime)
The date and time when the principal was associated with the resource share.
|
void |
setExternal(Boolean external)
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that
owns the resource share:
|
void |
setId(String id)
The ID of the principal that can be associated with a resource share.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association between the resource share and the principal was last updated.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of a resource share the principal is associated with.
|
String |
toString()
Returns a string representation of this object.
|
Principal |
withCreationTime(Date creationTime)
The date and time when the principal was associated with the resource share.
|
Principal |
withExternal(Boolean external)
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that
owns the resource share:
|
Principal |
withId(String id)
The ID of the principal that can be associated with a resource share.
|
Principal |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association between the resource share and the principal was last updated.
|
Principal |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of a resource share the principal is associated with.
|
public void setId(String id)
The ID of the principal that can be associated with a resource share.
id
- The ID of the principal that can be associated with a resource share.public String getId()
The ID of the principal that can be associated with a resource share.
public Principal withId(String id)
The ID of the principal that can be associated with a resource share.
id
- The ID of the principal that can be associated with a resource share.public void setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
resourceShareArn
- The Amazon Resource
Name (ARN) of a resource share the principal is associated with.public String getResourceShareArn()
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
public Principal withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
resourceShareArn
- The Amazon Resource
Name (ARN) of a resource share the principal is associated with.public void setCreationTime(Date creationTime)
The date and time when the principal was associated with the resource share.
creationTime
- The date and time when the principal was associated with the resource share.public Date getCreationTime()
The date and time when the principal was associated with the resource share.
public Principal withCreationTime(Date creationTime)
The date and time when the principal was associated with the resource share.
creationTime
- The date and time when the principal was associated with the resource share.public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association between the resource share and the principal was last updated.
lastUpdatedTime
- The date and time when the association between the resource share and the principal was last updated.public Date getLastUpdatedTime()
The date and time when the association between the resource share and the principal was last updated.
public Principal withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association between the resource share and the principal was last updated.
lastUpdatedTime
- The date and time when the association between the resource share and the principal was last updated.public void setExternal(Boolean external)
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
external
- Indicates the relationship between the Amazon Web Services account the principal belongs to and the
account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
public Boolean getExternal()
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
public Principal withExternal(Boolean external)
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
external
- Indicates the relationship between the Amazon Web Services account the principal belongs to and the
account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
public Boolean isExternal()
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
True
– The two accounts belong to same organization.
False
– The two accounts do not belong to the same organization.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.