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

com.amazonaws.services.servicecatalog.model.DescribeProvisioningArtifactResult 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 2020-2025 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;

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

    /**
     * 

* Information about the provisioning artifact. *

*/ private ProvisioningArtifactDetail provisioningArtifactDetail; /** *

* The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. *

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

* The status of the current request. *

*/ private String status; /** *

* Information about the parameters used to provision the product. *

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

* Information about the provisioning artifact. *

* * @param provisioningArtifactDetail * Information about the provisioning artifact. */ public void setProvisioningArtifactDetail(ProvisioningArtifactDetail provisioningArtifactDetail) { this.provisioningArtifactDetail = provisioningArtifactDetail; } /** *

* Information about the provisioning artifact. *

* * @return Information about the provisioning artifact. */ public ProvisioningArtifactDetail getProvisioningArtifactDetail() { return this.provisioningArtifactDetail; } /** *

* Information about the provisioning artifact. *

* * @param provisioningArtifactDetail * Information about the provisioning artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult withProvisioningArtifactDetail(ProvisioningArtifactDetail provisioningArtifactDetail) { setProvisioningArtifactDetail(provisioningArtifactDetail); return this; } /** *

* The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. *

* * @return The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. */ public java.util.Map getInfo() { return info; } /** *

* The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. *

* * @param info * The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. */ public void setInfo(java.util.Map info) { this.info = info; } /** *

* The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. *

* * @param info * The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult withInfo(java.util.Map info) { setInfo(info); return this; } /** * Add a single Info entry * * @see DescribeProvisioningArtifactResult#withInfo * @returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult addInfoEntry(String key, String value) { if (null == this.info) { this.info = new java.util.HashMap(); } if (this.info.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.info.put(key, value); return this; } /** * Removes all the entries added into Info. * * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult clearInfoEntries() { this.info = null; return this; } /** *

* The status of the current request. *

* * @param status * The status of the current request. * @see Status */ public void setStatus(String status) { this.status = status; } /** *

* The status of the current request. *

* * @return The status of the current request. * @see Status */ public String getStatus() { return this.status; } /** *

* The status of the current request. *

* * @param status * The status of the current request. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public DescribeProvisioningArtifactResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the current request. *

* * @param status * The status of the current request. * @see Status */ public void setStatus(Status status) { withStatus(status); } /** *

* The status of the current request. *

* * @param status * The status of the current request. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public DescribeProvisioningArtifactResult withStatus(Status status) { this.status = status.toString(); return this; } /** *

* Information about the parameters used to provision the product. *

* * @return Information about the parameters used to provision the product. */ public java.util.List getProvisioningArtifactParameters() { return provisioningArtifactParameters; } /** *

* Information about the parameters used to provision the product. *

* * @param provisioningArtifactParameters * Information about the parameters used to provision the product. */ public void setProvisioningArtifactParameters(java.util.Collection provisioningArtifactParameters) { if (provisioningArtifactParameters == null) { this.provisioningArtifactParameters = null; return; } this.provisioningArtifactParameters = new java.util.ArrayList(provisioningArtifactParameters); } /** *

* Information about the parameters used to provision the product. *

*

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

* * @param provisioningArtifactParameters * Information about the parameters used to provision the product. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult withProvisioningArtifactParameters(ProvisioningArtifactParameter... provisioningArtifactParameters) { if (this.provisioningArtifactParameters == null) { setProvisioningArtifactParameters(new java.util.ArrayList(provisioningArtifactParameters.length)); } for (ProvisioningArtifactParameter ele : provisioningArtifactParameters) { this.provisioningArtifactParameters.add(ele); } return this; } /** *

* Information about the parameters used to provision the product. *

* * @param provisioningArtifactParameters * Information about the parameters used to provision the product. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeProvisioningArtifactResult withProvisioningArtifactParameters( java.util.Collection provisioningArtifactParameters) { setProvisioningArtifactParameters(provisioningArtifactParameters); 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 (getProvisioningArtifactDetail() != null) sb.append("ProvisioningArtifactDetail: ").append(getProvisioningArtifactDetail()).append(","); if (getInfo() != null) sb.append("Info: ").append(getInfo()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getProvisioningArtifactParameters() != null) sb.append("ProvisioningArtifactParameters: ").append(getProvisioningArtifactParameters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeProvisioningArtifactResult == false) return false; DescribeProvisioningArtifactResult other = (DescribeProvisioningArtifactResult) obj; if (other.getProvisioningArtifactDetail() == null ^ this.getProvisioningArtifactDetail() == null) return false; if (other.getProvisioningArtifactDetail() != null && other.getProvisioningArtifactDetail().equals(this.getProvisioningArtifactDetail()) == false) return false; if (other.getInfo() == null ^ this.getInfo() == null) return false; if (other.getInfo() != null && other.getInfo().equals(this.getInfo()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getProvisioningArtifactParameters() == null ^ this.getProvisioningArtifactParameters() == null) return false; if (other.getProvisioningArtifactParameters() != null && other.getProvisioningArtifactParameters().equals(this.getProvisioningArtifactParameters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProvisioningArtifactDetail() == null) ? 0 : getProvisioningArtifactDetail().hashCode()); hashCode = prime * hashCode + ((getInfo() == null) ? 0 : getInfo().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getProvisioningArtifactParameters() == null) ? 0 : getProvisioningArtifactParameters().hashCode()); return hashCode; } @Override public DescribeProvisioningArtifactResult clone() { try { return (DescribeProvisioningArtifactResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy