com.amazonaws.services.datazone.model.AssetListingItem Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datazoneexternal Show documentation
/*
* 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;
/**
*
* The details of an asset published in an Amazon DataZone catalog.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AssetListingItem implements Serializable, Cloneable, StructuredPojo {
/**
*
* The additional attributes of an asset published in an Amazon DataZone catalog.
*
*/
private AssetListingItemAdditionalAttributes additionalAttributes;
/**
*
* The timestamp of when an asset published in an Amazon DataZone catalog was created.
*
*/
private java.util.Date createdAt;
/**
*
* The description of an asset published in an Amazon DataZone catalog.
*
*/
private String description;
/**
*
* The identifier of the inventory asset.
*
*/
private String entityId;
/**
*
* The revision of the inventory asset.
*
*/
private String entityRevision;
/**
*
* The type of the inventory asset.
*
*/
private String entityType;
/**
*
* Glossary terms attached to the inventory asset.
*
*/
private java.util.List glossaryTerms;
/**
*
* The Amazon DataZone user who created the listing.
*
*/
private String listingCreatedBy;
/**
*
* The identifier of the listing (asset published in Amazon DataZone catalog).
*
*/
private String listingId;
/**
*
* The revision of the listing (asset published in Amazon DataZone catalog).
*
*/
private String listingRevision;
/**
*
* The Amazon DataZone user who updated the listing.
*
*/
private String listingUpdatedBy;
/**
*
* The name of the inventory asset.
*
*/
private String name;
/**
*
* The identifier of the project that owns the inventory asset.
*
*/
private String owningProjectId;
/**
*
* The additional attributes of an asset published in an Amazon DataZone catalog.
*
*
* @param additionalAttributes
* The additional attributes of an asset published in an Amazon DataZone catalog.
*/
public void setAdditionalAttributes(AssetListingItemAdditionalAttributes additionalAttributes) {
this.additionalAttributes = additionalAttributes;
}
/**
*
* The additional attributes of an asset published in an Amazon DataZone catalog.
*
*
* @return The additional attributes of an asset published in an Amazon DataZone catalog.
*/
public AssetListingItemAdditionalAttributes getAdditionalAttributes() {
return this.additionalAttributes;
}
/**
*
* The additional attributes of an asset published in an Amazon DataZone catalog.
*
*
* @param additionalAttributes
* The additional attributes 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 AssetListingItem withAdditionalAttributes(AssetListingItemAdditionalAttributes additionalAttributes) {
setAdditionalAttributes(additionalAttributes);
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 AssetListingItem withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The description of an asset published in an Amazon DataZone catalog.
*
*
* @param description
* The description of an asset published in an Amazon DataZone catalog.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of an asset published in an Amazon DataZone catalog.
*
*
* @return The description of an asset published in an Amazon DataZone catalog.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of an asset published in an Amazon DataZone catalog.
*
*
* @param description
* The description 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 AssetListingItem withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The identifier of the inventory asset.
*
*
* @param entityId
* The identifier of the inventory asset.
*/
public void setEntityId(String entityId) {
this.entityId = entityId;
}
/**
*
* The identifier of the inventory asset.
*
*
* @return The identifier of the inventory asset.
*/
public String getEntityId() {
return this.entityId;
}
/**
*
* The identifier of the inventory asset.
*
*
* @param entityId
* The identifier of the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withEntityId(String entityId) {
setEntityId(entityId);
return this;
}
/**
*
* The revision of the inventory asset.
*
*
* @param entityRevision
* The revision of the inventory asset.
*/
public void setEntityRevision(String entityRevision) {
this.entityRevision = entityRevision;
}
/**
*
* The revision of the inventory asset.
*
*
* @return The revision of the inventory asset.
*/
public String getEntityRevision() {
return this.entityRevision;
}
/**
*
* The revision of the inventory asset.
*
*
* @param entityRevision
* The revision of the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withEntityRevision(String entityRevision) {
setEntityRevision(entityRevision);
return this;
}
/**
*
* The type of the inventory asset.
*
*
* @param entityType
* The type of the inventory asset.
*/
public void setEntityType(String entityType) {
this.entityType = entityType;
}
/**
*
* The type of the inventory asset.
*
*
* @return The type of the inventory asset.
*/
public String getEntityType() {
return this.entityType;
}
/**
*
* The type of the inventory asset.
*
*
* @param entityType
* The type of the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withEntityType(String entityType) {
setEntityType(entityType);
return this;
}
/**
*
* Glossary terms attached to the inventory asset.
*
*
* @return Glossary terms attached to the inventory asset.
*/
public java.util.List getGlossaryTerms() {
return glossaryTerms;
}
/**
*
* Glossary terms attached to the inventory asset.
*
*
* @param glossaryTerms
* Glossary terms attached to the inventory asset.
*/
public void setGlossaryTerms(java.util.Collection glossaryTerms) {
if (glossaryTerms == null) {
this.glossaryTerms = null;
return;
}
this.glossaryTerms = new java.util.ArrayList(glossaryTerms);
}
/**
*
* Glossary terms attached to the inventory asset.
*
*
* 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
* Glossary terms attached to the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withGlossaryTerms(DetailedGlossaryTerm... glossaryTerms) {
if (this.glossaryTerms == null) {
setGlossaryTerms(new java.util.ArrayList(glossaryTerms.length));
}
for (DetailedGlossaryTerm ele : glossaryTerms) {
this.glossaryTerms.add(ele);
}
return this;
}
/**
*
* Glossary terms attached to the inventory asset.
*
*
* @param glossaryTerms
* Glossary terms attached to the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withGlossaryTerms(java.util.Collection glossaryTerms) {
setGlossaryTerms(glossaryTerms);
return this;
}
/**
*
* The Amazon DataZone user who created the listing.
*
*
* @param listingCreatedBy
* The Amazon DataZone user who created the listing.
*/
public void setListingCreatedBy(String listingCreatedBy) {
this.listingCreatedBy = listingCreatedBy;
}
/**
*
* The Amazon DataZone user who created the listing.
*
*
* @return The Amazon DataZone user who created the listing.
*/
public String getListingCreatedBy() {
return this.listingCreatedBy;
}
/**
*
* The Amazon DataZone user who created the listing.
*
*
* @param listingCreatedBy
* The Amazon DataZone user who created the listing.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withListingCreatedBy(String listingCreatedBy) {
setListingCreatedBy(listingCreatedBy);
return this;
}
/**
*
* The identifier of the listing (asset published in Amazon DataZone catalog).
*
*
* @param listingId
* The identifier of the listing (asset published in Amazon DataZone catalog).
*/
public void setListingId(String listingId) {
this.listingId = listingId;
}
/**
*
* The identifier of the listing (asset published in Amazon DataZone catalog).
*
*
* @return The identifier of the listing (asset published in Amazon DataZone catalog).
*/
public String getListingId() {
return this.listingId;
}
/**
*
* The identifier of the listing (asset published in Amazon DataZone catalog).
*
*
* @param listingId
* The identifier of the listing (asset published in Amazon DataZone catalog).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withListingId(String listingId) {
setListingId(listingId);
return this;
}
/**
*
* The revision of the listing (asset published in Amazon DataZone catalog).
*
*
* @param listingRevision
* The revision of the listing (asset published in Amazon DataZone catalog).
*/
public void setListingRevision(String listingRevision) {
this.listingRevision = listingRevision;
}
/**
*
* The revision of the listing (asset published in Amazon DataZone catalog).
*
*
* @return The revision of the listing (asset published in Amazon DataZone catalog).
*/
public String getListingRevision() {
return this.listingRevision;
}
/**
*
* The revision of the listing (asset published in Amazon DataZone catalog).
*
*
* @param listingRevision
* The revision of the listing (asset published in Amazon DataZone catalog).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withListingRevision(String listingRevision) {
setListingRevision(listingRevision);
return this;
}
/**
*
* The Amazon DataZone user who updated the listing.
*
*
* @param listingUpdatedBy
* The Amazon DataZone user who updated the listing.
*/
public void setListingUpdatedBy(String listingUpdatedBy) {
this.listingUpdatedBy = listingUpdatedBy;
}
/**
*
* The Amazon DataZone user who updated the listing.
*
*
* @return The Amazon DataZone user who updated the listing.
*/
public String getListingUpdatedBy() {
return this.listingUpdatedBy;
}
/**
*
* The Amazon DataZone user who updated the listing.
*
*
* @param listingUpdatedBy
* The Amazon DataZone user who updated the listing.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withListingUpdatedBy(String listingUpdatedBy) {
setListingUpdatedBy(listingUpdatedBy);
return this;
}
/**
*
* The name of the inventory asset.
*
*
* @param name
* The name of the inventory asset.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the inventory asset.
*
*
* @return The name of the inventory asset.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the inventory asset.
*
*
* @param name
* The name of the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem withName(String name) {
setName(name);
return this;
}
/**
*
* The identifier of the project that owns the inventory asset.
*
*
* @param owningProjectId
* The identifier of the project that owns the inventory asset.
*/
public void setOwningProjectId(String owningProjectId) {
this.owningProjectId = owningProjectId;
}
/**
*
* The identifier of the project that owns the inventory asset.
*
*
* @return The identifier of the project that owns the inventory asset.
*/
public String getOwningProjectId() {
return this.owningProjectId;
}
/**
*
* The identifier of the project that owns the inventory asset.
*
*
* @param owningProjectId
* The identifier of the project that owns the inventory asset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetListingItem 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 (getAdditionalAttributes() != null)
sb.append("AdditionalAttributes: ").append(getAdditionalAttributes()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDescription() != null)
sb.append("Description: ").append("***Sensitive Data Redacted***").append(",");
if (getEntityId() != null)
sb.append("EntityId: ").append(getEntityId()).append(",");
if (getEntityRevision() != null)
sb.append("EntityRevision: ").append(getEntityRevision()).append(",");
if (getEntityType() != null)
sb.append("EntityType: ").append(getEntityType()).append(",");
if (getGlossaryTerms() != null)
sb.append("GlossaryTerms: ").append(getGlossaryTerms()).append(",");
if (getListingCreatedBy() != null)
sb.append("ListingCreatedBy: ").append(getListingCreatedBy()).append(",");
if (getListingId() != null)
sb.append("ListingId: ").append(getListingId()).append(",");
if (getListingRevision() != null)
sb.append("ListingRevision: ").append(getListingRevision()).append(",");
if (getListingUpdatedBy() != null)
sb.append("ListingUpdatedBy: ").append(getListingUpdatedBy()).append(",");
if (getName() != null)
sb.append("Name: ").append("***Sensitive Data Redacted***").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 AssetListingItem == false)
return false;
AssetListingItem other = (AssetListingItem) obj;
if (other.getAdditionalAttributes() == null ^ this.getAdditionalAttributes() == null)
return false;
if (other.getAdditionalAttributes() != null && other.getAdditionalAttributes().equals(this.getAdditionalAttributes()) == 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.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getEntityId() == null ^ this.getEntityId() == null)
return false;
if (other.getEntityId() != null && other.getEntityId().equals(this.getEntityId()) == false)
return false;
if (other.getEntityRevision() == null ^ this.getEntityRevision() == null)
return false;
if (other.getEntityRevision() != null && other.getEntityRevision().equals(this.getEntityRevision()) == false)
return false;
if (other.getEntityType() == null ^ this.getEntityType() == null)
return false;
if (other.getEntityType() != null && other.getEntityType().equals(this.getEntityType()) == 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.getListingCreatedBy() == null ^ this.getListingCreatedBy() == null)
return false;
if (other.getListingCreatedBy() != null && other.getListingCreatedBy().equals(this.getListingCreatedBy()) == false)
return false;
if (other.getListingId() == null ^ this.getListingId() == null)
return false;
if (other.getListingId() != null && other.getListingId().equals(this.getListingId()) == false)
return false;
if (other.getListingRevision() == null ^ this.getListingRevision() == null)
return false;
if (other.getListingRevision() != null && other.getListingRevision().equals(this.getListingRevision()) == false)
return false;
if (other.getListingUpdatedBy() == null ^ this.getListingUpdatedBy() == null)
return false;
if (other.getListingUpdatedBy() != null && other.getListingUpdatedBy().equals(this.getListingUpdatedBy()) == 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.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 + ((getAdditionalAttributes() == null) ? 0 : getAdditionalAttributes().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getEntityId() == null) ? 0 : getEntityId().hashCode());
hashCode = prime * hashCode + ((getEntityRevision() == null) ? 0 : getEntityRevision().hashCode());
hashCode = prime * hashCode + ((getEntityType() == null) ? 0 : getEntityType().hashCode());
hashCode = prime * hashCode + ((getGlossaryTerms() == null) ? 0 : getGlossaryTerms().hashCode());
hashCode = prime * hashCode + ((getListingCreatedBy() == null) ? 0 : getListingCreatedBy().hashCode());
hashCode = prime * hashCode + ((getListingId() == null) ? 0 : getListingId().hashCode());
hashCode = prime * hashCode + ((getListingRevision() == null) ? 0 : getListingRevision().hashCode());
hashCode = prime * hashCode + ((getListingUpdatedBy() == null) ? 0 : getListingUpdatedBy().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getOwningProjectId() == null) ? 0 : getOwningProjectId().hashCode());
return hashCode;
}
@Override
public AssetListingItem clone() {
try {
return (AssetListingItem) 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.AssetListingItemMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}