@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
Describes a principal for use with AWS Resource Access Manager.
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The time when the principal was associated with the resource share.
|
Boolean |
getExternal()
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource
share.
|
String |
getId()
The ID of the principal.
|
Date |
getLastUpdatedTime()
The time when the association was last updated.
|
String |
getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
|
int |
hashCode() |
Boolean |
isExternal()
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource
share.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreationTime(Date creationTime)
The time when the principal was associated with the resource share.
|
void |
setExternal(Boolean external)
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource
share.
|
void |
setId(String id)
The ID of the principal.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
String |
toString()
Returns a string representation of this object.
|
Principal |
withCreationTime(Date creationTime)
The time when the principal was associated with the resource share.
|
Principal |
withExternal(Boolean external)
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource
share.
|
Principal |
withId(String id)
The ID of the principal.
|
Principal |
withLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
|
Principal |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
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 Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.public String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public Principal withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.public void setCreationTime(Date creationTime)
The time when the principal was associated with the resource share.
creationTime
- The time when the principal was associated with the resource share.public Date getCreationTime()
The time when the principal was associated with the resource share.
public Principal withCreationTime(Date creationTime)
The time when the principal was associated with the resource share.
creationTime
- The time when the principal was associated with the resource share.public void setLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
lastUpdatedTime
- The time when the association was last updated.public Date getLastUpdatedTime()
The time when the association was last updated.
public Principal withLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
lastUpdatedTime
- The time when the association was last updated.public void setExternal(Boolean external)
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource share.
external
- Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the
resource share.public Boolean getExternal()
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource share.
public Principal withExternal(Boolean external)
Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the resource share.
external
- Indicates whether the principal belongs to the same AWS organization as the AWS account that owns the
resource share.public Boolean isExternal()
Indicates whether the principal belongs to the same AWS organization as the AWS 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.