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

com.amazonaws.services.athena.model.DataCatalogSummary Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show 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.athena.model;

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

/**
 * 

* The summary information for the data catalog, which includes its name and type. *

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

* The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of * 256 is reserved for use by Athena. *

*/ private String catalogName; /** *

* The data catalog type. *

*/ private String type; /** *

* The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of * 256 is reserved for use by Athena. *

* * @param catalogName * The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length * constraint of 256 is reserved for use by Athena. */ public void setCatalogName(String catalogName) { this.catalogName = catalogName; } /** *

* The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of * 256 is reserved for use by Athena. *

* * @return The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use * a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length * constraint of 256 is reserved for use by Athena. */ public String getCatalogName() { return this.catalogName; } /** *

* The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of * 256 is reserved for use by Athena. *

* * @param catalogName * The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a * maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length * constraint of 256 is reserved for use by Athena. * @return Returns a reference to this object so that method calls can be chained together. */ public DataCatalogSummary withCatalogName(String catalogName) { setCatalogName(catalogName); return this; } /** *

* The data catalog type. *

* * @param type * The data catalog type. * @see DataCatalogType */ public void setType(String type) { this.type = type; } /** *

* The data catalog type. *

* * @return The data catalog type. * @see DataCatalogType */ public String getType() { return this.type; } /** *

* The data catalog type. *

* * @param type * The data catalog type. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCatalogType */ public DataCatalogSummary withType(String type) { setType(type); return this; } /** *

* The data catalog type. *

* * @param type * The data catalog type. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCatalogType */ public DataCatalogSummary withType(DataCatalogType type) { this.type = type.toString(); return this; } /** * 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 (getCatalogName() != null) sb.append("CatalogName: ").append(getCatalogName()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DataCatalogSummary == false) return false; DataCatalogSummary other = (DataCatalogSummary) obj; if (other.getCatalogName() == null ^ this.getCatalogName() == null) return false; if (other.getCatalogName() != null && other.getCatalogName().equals(this.getCatalogName()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCatalogName() == null) ? 0 : getCatalogName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public DataCatalogSummary clone() { try { return (DataCatalogSummary) 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.athena.model.transform.DataCatalogSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy