/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ram.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a principal for use with Resource Access Manager. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Principal implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the principal that can be associated with a resource share. *
*/ private String id; /** ** The Amazon Resource Name * (ARN) of a resource share the principal is associated with. *
*/ private String resourceShareArn; /** ** The date and time when the principal was associated with the resource share. *
*/ private java.util.Date creationTime; /** ** The date and time when the association between the resource share and the principal was last updated. *
*/ private java.util.Date lastUpdatedTime; /** ** 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.
*
* The ID of the principal that can be associated with a resource share. *
* * @param id * The ID of the principal that can be associated with a resource share. */ public void setId(String id) { this.id = id; } /** ** The ID of the principal that can be associated with a resource share. *
* * @return The ID of the principal that can be associated with a resource share. */ public String getId() { return this.id; } /** ** The ID of the principal that can be associated with a resource share. *
* * @param id * The ID of the principal that can be associated with a resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public Principal withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name * (ARN) of a resource share the principal is associated with. *
* * @param resourceShareArn * The Amazon Resource * Name (ARN) of a resource share the principal is associated with. */ public void setResourceShareArn(String resourceShareArn) { this.resourceShareArn = resourceShareArn; } /** ** The Amazon Resource Name * (ARN) of a resource share the principal is associated with. *
* * @return The Amazon Resource * Name (ARN) of a resource share the principal is associated with. */ public String getResourceShareArn() { return this.resourceShareArn; } /** ** The Amazon Resource Name * (ARN) of a resource share the principal is associated with. *
* * @param resourceShareArn * The Amazon Resource * Name (ARN) of a resource share the principal is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public Principal withResourceShareArn(String resourceShareArn) { setResourceShareArn(resourceShareArn); return this; } /** ** The date and time when the principal was associated with the resource share. *
* * @param creationTime * The date and time when the principal was associated with the resource share. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time when the principal was associated with the resource share. *
* * @return The date and time when the principal was associated with the resource share. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time when the principal was associated with the resource share. *
* * @param creationTime * The date and time when the principal was associated with the resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public Principal withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The date and time when the association between the resource share and the principal was last updated. *
* * @param lastUpdatedTime * The date and time when the association between the resource share and the principal was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The date and time when the association between the resource share and the principal was last updated. *
* * @return The date and time when the association between the resource share and the principal was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The date and time when the association between the resource share and the principal was last updated. *
* * @param lastUpdatedTime * The date and time when the association between the resource share and the principal was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Principal withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** ** 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.
*
* 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.
*
* 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.
*
* 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.
*