
com.amazonaws.services.servicecatalog.model.CreateProvisioningArtifactRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-servicecatalog Show documentation
/*
* 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateProvisioningArtifactRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The language code.
*
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*
*/
private String acceptLanguage;
/**
*
* The product identifier.
*
*/
private String productId;
/**
*
* The configuration for the provisioning artifact.
*
*/
private ProvisioningArtifactProperties parameters;
/**
*
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency
* token, the same response is returned for each repeated request.
*
*/
private String idempotencyToken;
/**
*
* The language code.
*
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*
*
* @param acceptLanguage
* The language code.
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*/
public void setAcceptLanguage(String acceptLanguage) {
this.acceptLanguage = acceptLanguage;
}
/**
*
* The language code.
*
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*
*
* @return The language code.
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
*
* The language code.
*
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
*
*
* @param acceptLanguage
* The language code.
*
* -
*
* jp
- Japanese
*
*
* -
*
* zh
- Chinese
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProvisioningArtifactRequest withAcceptLanguage(String acceptLanguage) {
setAcceptLanguage(acceptLanguage);
return this;
}
/**
*
* The product identifier.
*
*
* @param productId
* The product identifier.
*/
public void setProductId(String productId) {
this.productId = productId;
}
/**
*
* The product identifier.
*
*
* @return The product identifier.
*/
public String getProductId() {
return this.productId;
}
/**
*
* The product identifier.
*
*
* @param productId
* The product identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProvisioningArtifactRequest withProductId(String productId) {
setProductId(productId);
return this;
}
/**
*
* The configuration for the provisioning artifact.
*
*
* @param parameters
* The configuration for the provisioning artifact.
*/
public void setParameters(ProvisioningArtifactProperties parameters) {
this.parameters = parameters;
}
/**
*
* The configuration for the provisioning artifact.
*
*
* @return The configuration for the provisioning artifact.
*/
public ProvisioningArtifactProperties getParameters() {
return this.parameters;
}
/**
*
* The configuration for the provisioning artifact.
*
*
* @param parameters
* The configuration for the provisioning artifact.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProvisioningArtifactRequest withParameters(ProvisioningArtifactProperties parameters) {
setParameters(parameters);
return this;
}
/**
*
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency
* token, the same response is returned for each repeated request.
*
*
* @param idempotencyToken
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
* idempotency token, the same response is returned for each repeated request.
*/
public void setIdempotencyToken(String idempotencyToken) {
this.idempotencyToken = idempotencyToken;
}
/**
*
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency
* token, the same response is returned for each repeated request.
*
*
* @return A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
* idempotency token, the same response is returned for each repeated request.
*/
public String getIdempotencyToken() {
return this.idempotencyToken;
}
/**
*
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency
* token, the same response is returned for each repeated request.
*
*
* @param idempotencyToken
* A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
* idempotency token, the same response is returned for each repeated request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProvisioningArtifactRequest withIdempotencyToken(String idempotencyToken) {
setIdempotencyToken(idempotencyToken);
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 (getAcceptLanguage() != null)
sb.append("AcceptLanguage: ").append(getAcceptLanguage()).append(",");
if (getProductId() != null)
sb.append("ProductId: ").append(getProductId()).append(",");
if (getParameters() != null)
sb.append("Parameters: ").append(getParameters()).append(",");
if (getIdempotencyToken() != null)
sb.append("IdempotencyToken: ").append(getIdempotencyToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateProvisioningArtifactRequest == false)
return false;
CreateProvisioningArtifactRequest other = (CreateProvisioningArtifactRequest) obj;
if (other.getAcceptLanguage() == null ^ this.getAcceptLanguage() == null)
return false;
if (other.getAcceptLanguage() != null && other.getAcceptLanguage().equals(this.getAcceptLanguage()) == false)
return false;
if (other.getProductId() == null ^ this.getProductId() == null)
return false;
if (other.getProductId() != null && other.getProductId().equals(this.getProductId()) == false)
return false;
if (other.getParameters() == null ^ this.getParameters() == null)
return false;
if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false)
return false;
if (other.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null)
return false;
if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAcceptLanguage() == null) ? 0 : getAcceptLanguage().hashCode());
hashCode = prime * hashCode + ((getProductId() == null) ? 0 : getProductId().hashCode());
hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode());
hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode());
return hashCode;
}
@Override
public CreateProvisioningArtifactRequest clone() {
return (CreateProvisioningArtifactRequest) super.clone();
}
}