/* * 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 an association between a resource share and either a principal or a resource. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceShareAssociation implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name * (ARN) of the resource share. *

*/ private String resourceShareArn; /** *

* The name of the resource share. *

*/ private String resourceShareName; /** *

* The associated entity. This can be either of the following: *

* */ private String associatedEntity; /** *

* The type of entity included in this association. *

*/ private String associationType; /** *

* The current status of the association. *

*/ private String status; /** *

* A message about the status of the association. *

*/ private String statusMessage; /** *

* The date and time when the association was created. *

*/ private java.util.Date creationTime; /** *

* The date and time when the association was last updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services * account that owns the resource share. *

*/ private Boolean external; /** *

* The Amazon Resource Name * (ARN) of the resource share. *

* * @param resourceShareArn * The Amazon Resource * Name (ARN) of the resource share. */ public void setResourceShareArn(String resourceShareArn) { this.resourceShareArn = resourceShareArn; } /** *

* The Amazon Resource Name * (ARN) of the resource share. *

* * @return The Amazon Resource * Name (ARN) of the resource share. */ public String getResourceShareArn() { return this.resourceShareArn; } /** *

* The Amazon Resource Name * (ARN) of the resource share. *

* * @param resourceShareArn * The Amazon Resource * Name (ARN) of the resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceShareAssociation withResourceShareArn(String resourceShareArn) { setResourceShareArn(resourceShareArn); return this; } /** *

* The name of the resource share. *

* * @param resourceShareName * The name of the resource share. */ public void setResourceShareName(String resourceShareName) { this.resourceShareName = resourceShareName; } /** *

* The name of the resource share. *

* * @return The name of the resource share. */ public String getResourceShareName() { return this.resourceShareName; } /** *

* The name of the resource share. *

* * @param resourceShareName * The name of the resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceShareAssociation withResourceShareName(String resourceShareName) { setResourceShareName(resourceShareName); return this; } /** *

* The associated entity. This can be either of the following: *

* * * @param associatedEntity * The associated entity. This can be either of the following:

*