/* * 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.sagemakergeospatial.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Response object containing details for a specific RasterDataCollection. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RasterDataCollectionMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the raster data collection. *
*/ private String arn; /** ** A description of the raster data collection. *
*/ private String description; /** ** The description URL of the raster data collection. *
*/ private String descriptionPageUrl; /** ** The name of the raster data collection. *
*/ private String name; /** ** The list of filters supported by the raster data collection. *
*/ private java.util.List* Each tag consists of a key and a value. *
*/ private java.util.Map* The type of raster data collection. *
*/ private String type; /** ** The Amazon Resource Name (ARN) of the raster data collection. *
* * @param arn * The Amazon Resource Name (ARN) of the raster data collection. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the raster data collection. *
* * @return The Amazon Resource Name (ARN) of the raster data collection. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the raster data collection. *
* * @param arn * The Amazon Resource Name (ARN) of the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withArn(String arn) { setArn(arn); return this; } /** ** A description of the raster data collection. *
* * @param description * A description of the raster data collection. */ public void setDescription(String description) { this.description = description; } /** ** A description of the raster data collection. *
* * @return A description of the raster data collection. */ public String getDescription() { return this.description; } /** ** A description of the raster data collection. *
* * @param description * A description of the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withDescription(String description) { setDescription(description); return this; } /** ** The description URL of the raster data collection. *
* * @param descriptionPageUrl * The description URL of the raster data collection. */ public void setDescriptionPageUrl(String descriptionPageUrl) { this.descriptionPageUrl = descriptionPageUrl; } /** ** The description URL of the raster data collection. *
* * @return The description URL of the raster data collection. */ public String getDescriptionPageUrl() { return this.descriptionPageUrl; } /** ** The description URL of the raster data collection. *
* * @param descriptionPageUrl * The description URL of the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withDescriptionPageUrl(String descriptionPageUrl) { setDescriptionPageUrl(descriptionPageUrl); return this; } /** ** The name of the raster data collection. *
* * @param name * The name of the raster data collection. */ public void setName(String name) { this.name = name; } /** ** The name of the raster data collection. *
* * @return The name of the raster data collection. */ public String getName() { return this.name; } /** ** The name of the raster data collection. *
* * @param name * The name of the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withName(String name) { setName(name); return this; } /** ** The list of filters supported by the raster data collection. *
* * @return The list of filters supported by the raster data collection. */ public java.util.List* The list of filters supported by the raster data collection. *
* * @param supportedFilters * The list of filters supported by the raster data collection. */ public void setSupportedFilters(java.util.Collection* The list of filters supported by the raster data collection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedFilters(java.util.Collection)} or {@link #withSupportedFilters(java.util.Collection)} if you * want to override the existing values. *
* * @param supportedFilters * The list of filters supported by the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withSupportedFilters(Filter... supportedFilters) { if (this.supportedFilters == null) { setSupportedFilters(new java.util.ArrayList* The list of filters supported by the raster data collection. *
* * @param supportedFilters * The list of filters supported by the raster data collection. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withSupportedFilters(java.util.Collection* Each tag consists of a key and a value. *
* * @return Each tag consists of a key and a value. */ public java.util.Map* Each tag consists of a key and a value. *
* * @param tags * Each tag consists of a key and a value. */ public void setTags(java.util.Map* Each tag consists of a key and a value. *
* * @param tags * Each tag consists of a key and a value. * @return Returns a reference to this object so that method calls can be chained together. */ public RasterDataCollectionMetadata withTags(java.util.Map* The type of raster data collection. *
* * @param type * The type of raster data collection. * @see DataCollectionType */ public void setType(String type) { this.type = type; } /** ** The type of raster data collection. *
* * @return The type of raster data collection. * @see DataCollectionType */ public String getType() { return this.type; } /** ** The type of raster data collection. *
* * @param type * The type of raster data collection. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCollectionType */ public RasterDataCollectionMetadata withType(String type) { setType(type); return this; } /** ** The type of raster data collection. *
* * @param type * The type of raster data collection. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCollectionType */ public RasterDataCollectionMetadata withType(DataCollectionType 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDescriptionPageUrl() != null) sb.append("DescriptionPageUrl: ").append(getDescriptionPageUrl()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSupportedFilters() != null) sb.append("SupportedFilters: ").append(getSupportedFilters()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).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 RasterDataCollectionMetadata == false) return false; RasterDataCollectionMetadata other = (RasterDataCollectionMetadata) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDescriptionPageUrl() == null ^ this.getDescriptionPageUrl() == null) return false; if (other.getDescriptionPageUrl() != null && other.getDescriptionPageUrl().equals(this.getDescriptionPageUrl()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getSupportedFilters() == null ^ this.getSupportedFilters() == null) return false; if (other.getSupportedFilters() != null && other.getSupportedFilters().equals(this.getSupportedFilters()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDescriptionPageUrl() == null) ? 0 : getDescriptionPageUrl().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSupportedFilters() == null) ? 0 : getSupportedFilters().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public RasterDataCollectionMetadata clone() { try { return (RasterDataCollectionMetadata) 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.sagemakergeospatial.model.transform.RasterDataCollectionMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }