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

com.amazonaws.services.servicecatalog.model.UpdateProvisioningArtifactResult 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 UpdateProvisioningArtifactResult 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 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 UpdateProvisioningArtifactResult 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 UpdateProvisioningArtifactResult withInfo(java.util.Map info) { setInfo(info); return this; } /** * Add a single Info entry * * @see UpdateProvisioningArtifactResult#withInfo * @returns a reference to this object so that method calls can be chained together. */ public UpdateProvisioningArtifactResult 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 UpdateProvisioningArtifactResult 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 UpdateProvisioningArtifactResult 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 UpdateProvisioningArtifactResult withStatus(Status status) { this.status = status.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 (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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateProvisioningArtifactResult == false) return false; UpdateProvisioningArtifactResult other = (UpdateProvisioningArtifactResult) 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; 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()); return hashCode; } @Override public UpdateProvisioningArtifactResult clone() { try { return (UpdateProvisioningArtifactResult) 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