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

com.amazonaws.services.serverlessapplicationrepository.model.CreateCloudFormationChangeSetRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2013-2018 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.serverlessapplicationrepository.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 CreateCloudFormationChangeSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the application. *

*/ private String applicationId; /** *

* A list of parameter values for the parameters of the application. *

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

* The semantic version of the application: *

*

* https://semver.org/ *

*/ private String semanticVersion; /** *

* The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the * change set by comparing this stack's information with the information that you submit, such as a modified * template or different parameter input values. *

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) *

*/ private String stackName; /** *

* The Amazon Resource Name (ARN) of the application. *

* * @param applicationId * The Amazon Resource Name (ARN) of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The Amazon Resource Name (ARN) of the application. *

* * @return The Amazon Resource Name (ARN) of the application. */ public String getApplicationId() { return this.applicationId; } /** *

* The Amazon Resource Name (ARN) of the application. *

* * @param applicationId * The Amazon Resource Name (ARN) of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* A list of parameter values for the parameters of the application. *

* * @return A list of parameter values for the parameters of the application. */ public java.util.List getParameterOverrides() { return parameterOverrides; } /** *

* A list of parameter values for the parameters of the application. *

* * @param parameterOverrides * A list of parameter values for the parameters of the application. */ public void setParameterOverrides(java.util.Collection parameterOverrides) { if (parameterOverrides == null) { this.parameterOverrides = null; return; } this.parameterOverrides = new java.util.ArrayList(parameterOverrides); } /** *

* A list of parameter values for the parameters of the application. *

*

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

* * @param parameterOverrides * A list of parameter values for the parameters of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetRequest withParameterOverrides(ParameterValue... parameterOverrides) { if (this.parameterOverrides == null) { setParameterOverrides(new java.util.ArrayList(parameterOverrides.length)); } for (ParameterValue ele : parameterOverrides) { this.parameterOverrides.add(ele); } return this; } /** *

* A list of parameter values for the parameters of the application. *

* * @param parameterOverrides * A list of parameter values for the parameters of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetRequest withParameterOverrides(java.util.Collection parameterOverrides) { setParameterOverrides(parameterOverrides); return this; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @param semanticVersion * The semantic version of the application:

*

* https://semver.org/ */ public void setSemanticVersion(String semanticVersion) { this.semanticVersion = semanticVersion; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @return The semantic version of the application:

*

* https://semver.org/ */ public String getSemanticVersion() { return this.semanticVersion; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @param semanticVersion * The semantic version of the application:

*

* https://semver.org/ * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetRequest withSemanticVersion(String semanticVersion) { setSemanticVersion(semanticVersion); return this; } /** *

* The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the * change set by comparing this stack's information with the information that you submit, such as a modified * template or different parameter input values. *

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) *

* * @param stackName * The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation * generates the change set by comparing this stack's information with the information that you submit, such * as a modified template or different parameter input values.

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) */ public void setStackName(String stackName) { this.stackName = stackName; } /** *

* The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the * change set by comparing this stack's information with the information that you submit, such as a modified * template or different parameter input values. *

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) *

* * @return The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation * generates the change set by comparing this stack's information with the information that you submit, such * as a modified template or different parameter input values.

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) */ public String getStackName() { return this.stackName; } /** *

* The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the * change set by comparing this stack's information with the information that you submit, such as a modified * template or different parameter input values. *

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) *

* * @param stackName * The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation * generates the change set by comparing this stack's information with the information that you submit, such * as a modified template or different parameter input values.

*

* Constraints: Minimum length of 1. *

*

* Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*) * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetRequest withStackName(String stackName) { setStackName(stackName); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getParameterOverrides() != null) sb.append("ParameterOverrides: ").append(getParameterOverrides()).append(","); if (getSemanticVersion() != null) sb.append("SemanticVersion: ").append(getSemanticVersion()).append(","); if (getStackName() != null) sb.append("StackName: ").append(getStackName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCloudFormationChangeSetRequest == false) return false; CreateCloudFormationChangeSetRequest other = (CreateCloudFormationChangeSetRequest) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getParameterOverrides() == null ^ this.getParameterOverrides() == null) return false; if (other.getParameterOverrides() != null && other.getParameterOverrides().equals(this.getParameterOverrides()) == false) return false; if (other.getSemanticVersion() == null ^ this.getSemanticVersion() == null) return false; if (other.getSemanticVersion() != null && other.getSemanticVersion().equals(this.getSemanticVersion()) == false) return false; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getParameterOverrides() == null) ? 0 : getParameterOverrides().hashCode()); hashCode = prime * hashCode + ((getSemanticVersion() == null) ? 0 : getSemanticVersion().hashCode()); hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); return hashCode; } @Override public CreateCloudFormationChangeSetRequest clone() { return (CreateCloudFormationChangeSetRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy