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

com.amazonaws.services.datazone.model.AssetListing Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DataZone module holds the client classes that are used for communicating with Amazon DataZone 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.datazone.model;

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

/**
 * 

* An asset published in an Amazon DataZone catalog. *

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

* The identifier of an asset published in an Amazon DataZone catalog. *

*/ private String assetId; /** *

* The revision of an asset published in an Amazon DataZone catalog. *

*/ private String assetRevision; /** *

* The type of an asset published in an Amazon DataZone catalog. *

*/ private String assetType; /** *

* The timestamp of when an asset published in an Amazon DataZone catalog was created. *

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

* The metadata forms attached to an asset published in an Amazon DataZone catalog. *

*/ private String forms; /** *

* The glossary terms attached to an asset published in an Amazon DataZone catalog. *

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

* The latest time series data points forms included in the additional attributes of an asset. *

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

* The identifier of the project where an asset published in an Amazon DataZone catalog exists. *

*/ private String owningProjectId; /** *

* The identifier of an asset published in an Amazon DataZone catalog. *

* * @param assetId * The identifier of an asset published in an Amazon DataZone catalog. */ public void setAssetId(String assetId) { this.assetId = assetId; } /** *

* The identifier of an asset published in an Amazon DataZone catalog. *

* * @return The identifier of an asset published in an Amazon DataZone catalog. */ public String getAssetId() { return this.assetId; } /** *

* The identifier of an asset published in an Amazon DataZone catalog. *

* * @param assetId * The identifier of an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withAssetId(String assetId) { setAssetId(assetId); return this; } /** *

* The revision of an asset published in an Amazon DataZone catalog. *

* * @param assetRevision * The revision of an asset published in an Amazon DataZone catalog. */ public void setAssetRevision(String assetRevision) { this.assetRevision = assetRevision; } /** *

* The revision of an asset published in an Amazon DataZone catalog. *

* * @return The revision of an asset published in an Amazon DataZone catalog. */ public String getAssetRevision() { return this.assetRevision; } /** *

* The revision of an asset published in an Amazon DataZone catalog. *

* * @param assetRevision * The revision of an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withAssetRevision(String assetRevision) { setAssetRevision(assetRevision); return this; } /** *

* The type of an asset published in an Amazon DataZone catalog. *

* * @param assetType * The type of an asset published in an Amazon DataZone catalog. */ public void setAssetType(String assetType) { this.assetType = assetType; } /** *

* The type of an asset published in an Amazon DataZone catalog. *

* * @return The type of an asset published in an Amazon DataZone catalog. */ public String getAssetType() { return this.assetType; } /** *

* The type of an asset published in an Amazon DataZone catalog. *

* * @param assetType * The type of an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withAssetType(String assetType) { setAssetType(assetType); return this; } /** *

* The timestamp of when an asset published in an Amazon DataZone catalog was created. *

* * @param createdAt * The timestamp of when an asset published in an Amazon DataZone catalog was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The timestamp of when an asset published in an Amazon DataZone catalog was created. *

* * @return The timestamp of when an asset published in an Amazon DataZone catalog was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The timestamp of when an asset published in an Amazon DataZone catalog was created. *

* * @param createdAt * The timestamp of when an asset published in an Amazon DataZone catalog was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The metadata forms attached to an asset published in an Amazon DataZone catalog. *

* * @param forms * The metadata forms attached to an asset published in an Amazon DataZone catalog. */ public void setForms(String forms) { this.forms = forms; } /** *

* The metadata forms attached to an asset published in an Amazon DataZone catalog. *

* * @return The metadata forms attached to an asset published in an Amazon DataZone catalog. */ public String getForms() { return this.forms; } /** *

* The metadata forms attached to an asset published in an Amazon DataZone catalog. *

* * @param forms * The metadata forms attached to an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withForms(String forms) { setForms(forms); return this; } /** *

* The glossary terms attached to an asset published in an Amazon DataZone catalog. *

* * @return The glossary terms attached to an asset published in an Amazon DataZone catalog. */ public java.util.List getGlossaryTerms() { return glossaryTerms; } /** *

* The glossary terms attached to an asset published in an Amazon DataZone catalog. *

* * @param glossaryTerms * The glossary terms attached to an asset published in an Amazon DataZone catalog. */ public void setGlossaryTerms(java.util.Collection glossaryTerms) { if (glossaryTerms == null) { this.glossaryTerms = null; return; } this.glossaryTerms = new java.util.ArrayList(glossaryTerms); } /** *

* The glossary terms attached to an asset published in an Amazon DataZone catalog. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlossaryTerms(java.util.Collection)} or {@link #withGlossaryTerms(java.util.Collection)} if you want * to override the existing values. *

* * @param glossaryTerms * The glossary terms attached to an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withGlossaryTerms(DetailedGlossaryTerm... glossaryTerms) { if (this.glossaryTerms == null) { setGlossaryTerms(new java.util.ArrayList(glossaryTerms.length)); } for (DetailedGlossaryTerm ele : glossaryTerms) { this.glossaryTerms.add(ele); } return this; } /** *

* The glossary terms attached to an asset published in an Amazon DataZone catalog. *

* * @param glossaryTerms * The glossary terms attached to an asset published in an Amazon DataZone catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withGlossaryTerms(java.util.Collection glossaryTerms) { setGlossaryTerms(glossaryTerms); return this; } /** *

* The latest time series data points forms included in the additional attributes of an asset. *

* * @return The latest time series data points forms included in the additional attributes of an asset. */ public java.util.List getLatestTimeSeriesDataPointForms() { return latestTimeSeriesDataPointForms; } /** *

* The latest time series data points forms included in the additional attributes of an asset. *

* * @param latestTimeSeriesDataPointForms * The latest time series data points forms included in the additional attributes of an asset. */ public void setLatestTimeSeriesDataPointForms(java.util.Collection latestTimeSeriesDataPointForms) { if (latestTimeSeriesDataPointForms == null) { this.latestTimeSeriesDataPointForms = null; return; } this.latestTimeSeriesDataPointForms = new java.util.ArrayList(latestTimeSeriesDataPointForms); } /** *

* The latest time series data points forms included in the additional attributes of an asset. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLatestTimeSeriesDataPointForms(java.util.Collection)} or * {@link #withLatestTimeSeriesDataPointForms(java.util.Collection)} if you want to override the existing values. *

* * @param latestTimeSeriesDataPointForms * The latest time series data points forms included in the additional attributes of an asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withLatestTimeSeriesDataPointForms(TimeSeriesDataPointSummaryFormOutput... latestTimeSeriesDataPointForms) { if (this.latestTimeSeriesDataPointForms == null) { setLatestTimeSeriesDataPointForms(new java.util.ArrayList(latestTimeSeriesDataPointForms.length)); } for (TimeSeriesDataPointSummaryFormOutput ele : latestTimeSeriesDataPointForms) { this.latestTimeSeriesDataPointForms.add(ele); } return this; } /** *

* The latest time series data points forms included in the additional attributes of an asset. *

* * @param latestTimeSeriesDataPointForms * The latest time series data points forms included in the additional attributes of an asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withLatestTimeSeriesDataPointForms(java.util.Collection latestTimeSeriesDataPointForms) { setLatestTimeSeriesDataPointForms(latestTimeSeriesDataPointForms); return this; } /** *

* The identifier of the project where an asset published in an Amazon DataZone catalog exists. *

* * @param owningProjectId * The identifier of the project where an asset published in an Amazon DataZone catalog exists. */ public void setOwningProjectId(String owningProjectId) { this.owningProjectId = owningProjectId; } /** *

* The identifier of the project where an asset published in an Amazon DataZone catalog exists. *

* * @return The identifier of the project where an asset published in an Amazon DataZone catalog exists. */ public String getOwningProjectId() { return this.owningProjectId; } /** *

* The identifier of the project where an asset published in an Amazon DataZone catalog exists. *

* * @param owningProjectId * The identifier of the project where an asset published in an Amazon DataZone catalog exists. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetListing withOwningProjectId(String owningProjectId) { setOwningProjectId(owningProjectId); 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 (getAssetId() != null) sb.append("AssetId: ").append(getAssetId()).append(","); if (getAssetRevision() != null) sb.append("AssetRevision: ").append(getAssetRevision()).append(","); if (getAssetType() != null) sb.append("AssetType: ").append(getAssetType()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getForms() != null) sb.append("Forms: ").append(getForms()).append(","); if (getGlossaryTerms() != null) sb.append("GlossaryTerms: ").append(getGlossaryTerms()).append(","); if (getLatestTimeSeriesDataPointForms() != null) sb.append("LatestTimeSeriesDataPointForms: ").append(getLatestTimeSeriesDataPointForms()).append(","); if (getOwningProjectId() != null) sb.append("OwningProjectId: ").append(getOwningProjectId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssetListing == false) return false; AssetListing other = (AssetListing) obj; if (other.getAssetId() == null ^ this.getAssetId() == null) return false; if (other.getAssetId() != null && other.getAssetId().equals(this.getAssetId()) == false) return false; if (other.getAssetRevision() == null ^ this.getAssetRevision() == null) return false; if (other.getAssetRevision() != null && other.getAssetRevision().equals(this.getAssetRevision()) == false) return false; if (other.getAssetType() == null ^ this.getAssetType() == null) return false; if (other.getAssetType() != null && other.getAssetType().equals(this.getAssetType()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getForms() == null ^ this.getForms() == null) return false; if (other.getForms() != null && other.getForms().equals(this.getForms()) == false) return false; if (other.getGlossaryTerms() == null ^ this.getGlossaryTerms() == null) return false; if (other.getGlossaryTerms() != null && other.getGlossaryTerms().equals(this.getGlossaryTerms()) == false) return false; if (other.getLatestTimeSeriesDataPointForms() == null ^ this.getLatestTimeSeriesDataPointForms() == null) return false; if (other.getLatestTimeSeriesDataPointForms() != null && other.getLatestTimeSeriesDataPointForms().equals(this.getLatestTimeSeriesDataPointForms()) == false) return false; if (other.getOwningProjectId() == null ^ this.getOwningProjectId() == null) return false; if (other.getOwningProjectId() != null && other.getOwningProjectId().equals(this.getOwningProjectId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssetId() == null) ? 0 : getAssetId().hashCode()); hashCode = prime * hashCode + ((getAssetRevision() == null) ? 0 : getAssetRevision().hashCode()); hashCode = prime * hashCode + ((getAssetType() == null) ? 0 : getAssetType().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getForms() == null) ? 0 : getForms().hashCode()); hashCode = prime * hashCode + ((getGlossaryTerms() == null) ? 0 : getGlossaryTerms().hashCode()); hashCode = prime * hashCode + ((getLatestTimeSeriesDataPointForms() == null) ? 0 : getLatestTimeSeriesDataPointForms().hashCode()); hashCode = prime * hashCode + ((getOwningProjectId() == null) ? 0 : getOwningProjectId().hashCode()); return hashCode; } @Override public AssetListing clone() { try { return (AssetListing) 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.datazone.model.transform.AssetListingMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy