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

com.amazonaws.services.cloudformation.model.RollbackStackRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2018-2023 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.cloudformation.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 RollbackStackRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name that's associated with the stack. *

*/ private String stackName; /** *

* The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback * the stack. *

*/ private String roleARN; /** *

* A unique identifier for this RollbackStack request. *

*/ private String clientRequestToken; /** *

* When set to true, newly created resources are deleted when the operation rolls back. This includes * newly created resources marked with a deletion policy of Retain. *

*

* Default: false *

*/ private Boolean retainExceptOnCreate; /** *

* The name that's associated with the stack. *

* * @param stackName * The name that's associated with the stack. */ public void setStackName(String stackName) { this.stackName = stackName; } /** *

* The name that's associated with the stack. *

* * @return The name that's associated with the stack. */ public String getStackName() { return this.stackName; } /** *

* The name that's associated with the stack. *

* * @param stackName * The name that's associated with the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public RollbackStackRequest withStackName(String stackName) { setStackName(stackName); return this; } /** *

* The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback * the stack. *

* * @param roleARN * The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to * rollback the stack. */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback * the stack. *

* * @return The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to * rollback the stack. */ public String getRoleARN() { return this.roleARN; } /** *

* The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback * the stack. *

* * @param roleARN * The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to * rollback the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public RollbackStackRequest withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* A unique identifier for this RollbackStack request. *

* * @param clientRequestToken * A unique identifier for this RollbackStack request. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* A unique identifier for this RollbackStack request. *

* * @return A unique identifier for this RollbackStack request. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* A unique identifier for this RollbackStack request. *

* * @param clientRequestToken * A unique identifier for this RollbackStack request. * @return Returns a reference to this object so that method calls can be chained together. */ public RollbackStackRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* When set to true, newly created resources are deleted when the operation rolls back. This includes * newly created resources marked with a deletion policy of Retain. *

*

* Default: false *

* * @param retainExceptOnCreate * When set to true, newly created resources are deleted when the operation rolls back. This * includes newly created resources marked with a deletion policy of Retain.

*

* Default: false */ public void setRetainExceptOnCreate(Boolean retainExceptOnCreate) { this.retainExceptOnCreate = retainExceptOnCreate; } /** *

* When set to true, newly created resources are deleted when the operation rolls back. This includes * newly created resources marked with a deletion policy of Retain. *

*

* Default: false *

* * @return When set to true, newly created resources are deleted when the operation rolls back. This * includes newly created resources marked with a deletion policy of Retain.

*

* Default: false */ public Boolean getRetainExceptOnCreate() { return this.retainExceptOnCreate; } /** *

* When set to true, newly created resources are deleted when the operation rolls back. This includes * newly created resources marked with a deletion policy of Retain. *

*

* Default: false *

* * @param retainExceptOnCreate * When set to true, newly created resources are deleted when the operation rolls back. This * includes newly created resources marked with a deletion policy of Retain.

*

* Default: false * @return Returns a reference to this object so that method calls can be chained together. */ public RollbackStackRequest withRetainExceptOnCreate(Boolean retainExceptOnCreate) { setRetainExceptOnCreate(retainExceptOnCreate); return this; } /** *

* When set to true, newly created resources are deleted when the operation rolls back. This includes * newly created resources marked with a deletion policy of Retain. *

*

* Default: false *

* * @return When set to true, newly created resources are deleted when the operation rolls back. This * includes newly created resources marked with a deletion policy of Retain.

*

* Default: false */ public Boolean isRetainExceptOnCreate() { return this.retainExceptOnCreate; } /** * 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 (getStackName() != null) sb.append("StackName: ").append(getStackName()).append(","); if (getRoleARN() != null) sb.append("RoleARN: ").append(getRoleARN()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getRetainExceptOnCreate() != null) sb.append("RetainExceptOnCreate: ").append(getRetainExceptOnCreate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RollbackStackRequest == false) return false; RollbackStackRequest other = (RollbackStackRequest) obj; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false) return false; if (other.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getRetainExceptOnCreate() == null ^ this.getRetainExceptOnCreate() == null) return false; if (other.getRetainExceptOnCreate() != null && other.getRetainExceptOnCreate().equals(this.getRetainExceptOnCreate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getRetainExceptOnCreate() == null) ? 0 : getRetainExceptOnCreate().hashCode()); return hashCode; } @Override public RollbackStackRequest clone() { return (RollbackStackRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy