/* * 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; /** *

* An object that describes a managed permission associated with a resource share. *

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

* The Amazon Resource Name * (ARN) of the associated managed permission. *

*/ private String arn; /** *

* The version of the permission currently associated with the resource share. *

*/ private String permissionVersion; /** *

* Indicates whether the associated resource share is using the default version of the permission. *

*/ private Boolean defaultVersion; /** *

* The resource type to which this permission applies. *

*/ private String resourceType; /** *

* The current status of the association between the permission and the resource share. The following are the * possible values: *

* */ private String status; /** *

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

* */ private String featureSet; /** *

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

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

* The Amazon Resource Name * (ARN) of a resource share associated with this permission. *

*/ private String resourceShareArn; /** *

* The Amazon Resource Name * (ARN) of the associated managed permission. *

* * @param arn * The Amazon Resource * Name (ARN) of the associated managed permission. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name * (ARN) of the associated managed permission. *

* * @return The Amazon Resource * Name (ARN) of the associated managed permission. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name * (ARN) of the associated managed permission. *

* * @param arn * The Amazon Resource * Name (ARN) of the associated managed permission. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedPermission withArn(String arn) { setArn(arn); return this; } /** *

* The version of the permission currently associated with the resource share. *

* * @param permissionVersion * The version of the permission currently associated with the resource share. */ public void setPermissionVersion(String permissionVersion) { this.permissionVersion = permissionVersion; } /** *

* The version of the permission currently associated with the resource share. *

* * @return The version of the permission currently associated with the resource share. */ public String getPermissionVersion() { return this.permissionVersion; } /** *

* The version of the permission currently associated with the resource share. *

* * @param permissionVersion * The version of the permission currently associated with the resource share. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedPermission withPermissionVersion(String permissionVersion) { setPermissionVersion(permissionVersion); return this; } /** *

* Indicates whether the associated resource share is using the default version of the permission. *

* * @param defaultVersion * Indicates whether the associated resource share is using the default version of the permission. */ public void setDefaultVersion(Boolean defaultVersion) { this.defaultVersion = defaultVersion; } /** *

* Indicates whether the associated resource share is using the default version of the permission. *

* * @return Indicates whether the associated resource share is using the default version of the permission. */ public Boolean getDefaultVersion() { return this.defaultVersion; } /** *

* Indicates whether the associated resource share is using the default version of the permission. *

* * @param defaultVersion * Indicates whether the associated resource share is using the default version of the permission. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedPermission withDefaultVersion(Boolean defaultVersion) { setDefaultVersion(defaultVersion); return this; } /** *

* Indicates whether the associated resource share is using the default version of the permission. *

* * @return Indicates whether the associated resource share is using the default version of the permission. */ public Boolean isDefaultVersion() { return this.defaultVersion; } /** *

* The resource type to which this permission applies. *

* * @param resourceType * The resource type to which this permission applies. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type to which this permission applies. *

* * @return The resource type to which this permission applies. */ public String getResourceType() { return this.resourceType; } /** *

* The resource type to which this permission applies. *

* * @param resourceType * The resource type to which this permission applies. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociatedPermission withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The current status of the association between the permission and the resource share. The following are the * possible values: *

* * * @param status * The current status of the association between the permission and the resource share. The following are the * possible values:

*