@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 whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
String |
getId()
The ID of the principal.
|
Date |
getLastUpdatedTime()
The date and time when the association was last updated.
|
String |
getResourceShareArn()
The Amazon Resoure Name
(ARN) of a resource share the principal is associated with.
|
int |
hashCode() |
Boolean |
isExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services
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 whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
void |
setId(String id)
The ID of the principal.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resoure 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 whether the principal belongs to the same organization in Organizations as the Amazon Web Services
account that owns the resource share.
|
Principal |
withId(String id)
The ID of the principal.
|
Principal |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
|
Principal |
withResourceShareArn(String resourceShareArn)
The Amazon Resoure Name
(ARN) of a resource share the principal is associated with.
|
public void setId(String id)
The ID of the principal.
id
- The ID of the principal.public String getId()
The ID of the principal.
public Principal withId(String id)
The ID of the principal.
id
- The ID of the principal.public void setResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of a resource share the principal is associated with.
resourceShareArn
- The Amazon Resoure
Name (ARN) of a resource share the principal is associated with.public String getResourceShareArn()
The Amazon Resoure Name (ARN) of a resource share the principal is associated with.
public Principal withResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of a resource share the principal is associated with.
resourceShareArn
- The Amazon Resoure
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 was last updated.
lastUpdatedTime
- The date and time when the association was last updated.public Date getLastUpdatedTime()
The date and time when the association was last updated.
public Principal withLastUpdatedTime(Date lastUpdatedTime)
The date and time when the association was last updated.
lastUpdatedTime
- The date and time when the association was last updated.public void setExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
external
- Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web
Services account that owns the resource share.public Boolean getExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
public Principal withExternal(Boolean external)
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
external
- Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web
Services account that owns the resource share.public Boolean isExternal()
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
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.