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

com.amazonaws.services.servicecatalog.model.ProvisioningArtifactSummary Maven / Gradle / Ivy

Go to download

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

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.servicecatalog.model;

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

/**
 * 

* Summary information about a provisioning artifact (also known as a version) for a product. *

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

* The identifier of the provisioning artifact. *

*/ private String id; /** *

* The name of the provisioning artifact. *

*/ private String name; /** *

* The description of the provisioning artifact. *

*/ private String description; /** *

* The UTC time stamp of the creation time. *

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

* The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. *

*/ private java.util.Map provisioningArtifactMetadata; /** *

* The identifier of the provisioning artifact. *

* * @param id * The identifier of the provisioning artifact. */ public void setId(String id) { this.id = id; } /** *

* The identifier of the provisioning artifact. *

* * @return The identifier of the provisioning artifact. */ public String getId() { return this.id; } /** *

* The identifier of the provisioning artifact. *

* * @param id * The identifier of the provisioning artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary withId(String id) { setId(id); return this; } /** *

* The name of the provisioning artifact. *

* * @param name * The name of the provisioning artifact. */ public void setName(String name) { this.name = name; } /** *

* The name of the provisioning artifact. *

* * @return The name of the provisioning artifact. */ public String getName() { return this.name; } /** *

* The name of the provisioning artifact. *

* * @param name * The name of the provisioning artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary withName(String name) { setName(name); return this; } /** *

* The description of the provisioning artifact. *

* * @param description * The description of the provisioning artifact. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the provisioning artifact. *

* * @return The description of the provisioning artifact. */ public String getDescription() { return this.description; } /** *

* The description of the provisioning artifact. *

* * @param description * The description of the provisioning artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary withDescription(String description) { setDescription(description); return this; } /** *

* The UTC time stamp of the creation time. *

* * @param createdTime * The UTC time stamp of the creation time. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The UTC time stamp of the creation time. *

* * @return The UTC time stamp of the creation time. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The UTC time stamp of the creation time. *

* * @param createdTime * The UTC time stamp of the creation time. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

* The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. *

* * @return The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. */ public java.util.Map getProvisioningArtifactMetadata() { return provisioningArtifactMetadata; } /** *

* The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. *

* * @param provisioningArtifactMetadata * The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. */ public void setProvisioningArtifactMetadata(java.util.Map provisioningArtifactMetadata) { this.provisioningArtifactMetadata = provisioningArtifactMetadata; } /** *

* The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. *

* * @param provisioningArtifactMetadata * The metadata for the provisioning artifact. This is used with Amazon Web Services Marketplace products. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary withProvisioningArtifactMetadata(java.util.Map provisioningArtifactMetadata) { setProvisioningArtifactMetadata(provisioningArtifactMetadata); return this; } /** * Add a single ProvisioningArtifactMetadata entry * * @see ProvisioningArtifactSummary#withProvisioningArtifactMetadata * @returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary addProvisioningArtifactMetadataEntry(String key, String value) { if (null == this.provisioningArtifactMetadata) { this.provisioningArtifactMetadata = new java.util.HashMap(); } if (this.provisioningArtifactMetadata.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.provisioningArtifactMetadata.put(key, value); return this; } /** * Removes all the entries added into ProvisioningArtifactMetadata. * * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningArtifactSummary clearProvisioningArtifactMetadataEntries() { this.provisioningArtifactMetadata = null; 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getProvisioningArtifactMetadata() != null) sb.append("ProvisioningArtifactMetadata: ").append(getProvisioningArtifactMetadata()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProvisioningArtifactSummary == false) return false; ProvisioningArtifactSummary other = (ProvisioningArtifactSummary) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getProvisioningArtifactMetadata() == null ^ this.getProvisioningArtifactMetadata() == null) return false; if (other.getProvisioningArtifactMetadata() != null && other.getProvisioningArtifactMetadata().equals(this.getProvisioningArtifactMetadata()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getProvisioningArtifactMetadata() == null) ? 0 : getProvisioningArtifactMetadata().hashCode()); return hashCode; } @Override public ProvisioningArtifactSummary clone() { try { return (ProvisioningArtifactSummary) 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.servicecatalog.model.transform.ProvisioningArtifactSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy