All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lakeformation.model.ResourceInfo Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Lake Formation module holds the client classes that are used for communicating with AWS Lake Formation Service

The newest version!
/*
 * Copyright 2019-2024 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.lakeformation.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A structure containing information about an Lake Formation resource. *

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

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

*/ private String resourceArn; /** *

* The IAM role that registered a resource. *

*/ private String roleArn; /** *

* The date and time the resource was last modified. *

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

* Whether or not the resource is a federated resource. *

*/ private Boolean withFederation; /** *

* Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. *

*/ private Boolean hybridAccessEnabled; /** *

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

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

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

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

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

* * @param resourceArn * The Amazon Resource Name (ARN) of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceInfo withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *

* The IAM role that registered a resource. *

* * @param roleArn * The IAM role that registered a resource. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The IAM role that registered a resource. *

* * @return The IAM role that registered a resource. */ public String getRoleArn() { return this.roleArn; } /** *

* The IAM role that registered a resource. *

* * @param roleArn * The IAM role that registered a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceInfo withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The date and time the resource was last modified. *

* * @param lastModified * The date and time the resource was last modified. */ public void setLastModified(java.util.Date lastModified) { this.lastModified = lastModified; } /** *

* The date and time the resource was last modified. *

* * @return The date and time the resource was last modified. */ public java.util.Date getLastModified() { return this.lastModified; } /** *

* The date and time the resource was last modified. *

* * @param lastModified * The date and time the resource was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceInfo withLastModified(java.util.Date lastModified) { setLastModified(lastModified); return this; } /** *

* Whether or not the resource is a federated resource. *

* * @param withFederation * Whether or not the resource is a federated resource. */ public void setWithFederation(Boolean withFederation) { this.withFederation = withFederation; } /** *

* Whether or not the resource is a federated resource. *

* * @return Whether or not the resource is a federated resource. */ public Boolean getWithFederation() { return this.withFederation; } /** *

* Whether or not the resource is a federated resource. *

* * @param withFederation * Whether or not the resource is a federated resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceInfo withWithFederation(Boolean withFederation) { setWithFederation(withFederation); return this; } /** *

* Whether or not the resource is a federated resource. *

* * @return Whether or not the resource is a federated resource. */ public Boolean isWithFederation() { return this.withFederation; } /** *

* Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. *

* * @param hybridAccessEnabled * Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. */ public void setHybridAccessEnabled(Boolean hybridAccessEnabled) { this.hybridAccessEnabled = hybridAccessEnabled; } /** *

* Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. *

* * @return Indicates whether the data access of tables pointing to the location can be managed by both Lake * Formation permissions as well as Amazon S3 bucket policies. */ public Boolean getHybridAccessEnabled() { return this.hybridAccessEnabled; } /** *

* Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. *

* * @param hybridAccessEnabled * Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceInfo withHybridAccessEnabled(Boolean hybridAccessEnabled) { setHybridAccessEnabled(hybridAccessEnabled); return this; } /** *

* Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation * permissions as well as Amazon S3 bucket policies. *

* * @return Indicates whether the data access of tables pointing to the location can be managed by both Lake * Formation permissions as well as Amazon S3 bucket policies. */ public Boolean isHybridAccessEnabled() { return this.hybridAccessEnabled; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getLastModified() != null) sb.append("LastModified: ").append(getLastModified()).append(","); if (getWithFederation() != null) sb.append("WithFederation: ").append(getWithFederation()).append(","); if (getHybridAccessEnabled() != null) sb.append("HybridAccessEnabled: ").append(getHybridAccessEnabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceInfo == false) return false; ResourceInfo other = (ResourceInfo) obj; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getLastModified() == null ^ this.getLastModified() == null) return false; if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false) return false; if (other.getWithFederation() == null ^ this.getWithFederation() == null) return false; if (other.getWithFederation() != null && other.getWithFederation().equals(this.getWithFederation()) == false) return false; if (other.getHybridAccessEnabled() == null ^ this.getHybridAccessEnabled() == null) return false; if (other.getHybridAccessEnabled() != null && other.getHybridAccessEnabled().equals(this.getHybridAccessEnabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode()); hashCode = prime * hashCode + ((getWithFederation() == null) ? 0 : getWithFederation().hashCode()); hashCode = prime * hashCode + ((getHybridAccessEnabled() == null) ? 0 : getHybridAccessEnabled().hashCode()); return hashCode; } @Override public ResourceInfo clone() { try { return (ResourceInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.lakeformation.model.transform.ResourceInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy