/* * 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 resource share in RAM. *

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

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

*/ private String resourceShareArn; /** *

* The name of the resource share. *

*/ private String name; /** *

* The ID of the Amazon Web Services account that owns the resource share. *

*/ private String owningAccountId; /** *

* Indicates whether principals outside your organization in Organizations can be associated with a resource share. *

* */ private Boolean allowExternalPrincipals; /** *

* The current status of the resource share. *

*/ private String status; /** *

* A message about the status of the resource share. *

*/ private String statusMessage; /** *

* The tag key and value pairs attached to the resource share. *

*/ private java.util.List tags; /** *

* The date and time when the resource share was created. *

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

* The date and time when the resource share was last updated. *

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

* Indicates what features are available for this resource share. This parameter can have one of the following * values: *

* */ private String featureSet; /** *

* 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 ResourceShare withResourceShareArn(String resourceShareArn) { setResourceShareArn(resourceShareArn); return this; } /** *

* The name of the resource share. *

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

* The name of the resource share. *

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

* The name of the resource share. *

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

* The ID of the Amazon Web Services account that owns the resource share. *

* * @param owningAccountId * The ID of the Amazon Web Services account that owns the resource share. */ public void setOwningAccountId(String owningAccountId) { this.owningAccountId = owningAccountId; } /** *

* The ID of the Amazon Web Services account that owns the resource share. *

* * @return The ID of the Amazon Web Services account that owns the resource share. */ public String getOwningAccountId() { return this.owningAccountId; } /** *

* The ID of the Amazon Web Services account that owns the resource share. *

* * @param owningAccountId * The ID of the Amazon Web Services account that owns the resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceShare withOwningAccountId(String owningAccountId) { setOwningAccountId(owningAccountId); return this; } /** *

* Indicates whether principals outside your organization in Organizations can be associated with a resource share. *

* * * @param allowExternalPrincipals * Indicates whether principals outside your organization in Organizations can be associated with a resource * share.

*