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

com.amazonaws.services.cloudformation.model.DescribeChangeSetHooksResult 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;

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

    /**
     * 

* The change set identifier (stack ID). *

*/ private String changeSetId; /** *

* The change set name. *

*/ private String changeSetName; /** *

* List of hook objects. *

*/ private com.amazonaws.internal.SdkInternalList hooks; /** *

* Provides the status of the change set hook. *

*/ private String status; /** *

* Pagination token, null or empty if no more results. *

*/ private String nextToken; /** *

* The stack identifier (stack ID). *

*/ private String stackId; /** *

* The stack name. *

*/ private String stackName; /** *

* The change set identifier (stack ID). *

* * @param changeSetId * The change set identifier (stack ID). */ public void setChangeSetId(String changeSetId) { this.changeSetId = changeSetId; } /** *

* The change set identifier (stack ID). *

* * @return The change set identifier (stack ID). */ public String getChangeSetId() { return this.changeSetId; } /** *

* The change set identifier (stack ID). *

* * @param changeSetId * The change set identifier (stack ID). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withChangeSetId(String changeSetId) { setChangeSetId(changeSetId); return this; } /** *

* The change set name. *

* * @param changeSetName * The change set name. */ public void setChangeSetName(String changeSetName) { this.changeSetName = changeSetName; } /** *

* The change set name. *

* * @return The change set name. */ public String getChangeSetName() { return this.changeSetName; } /** *

* The change set name. *

* * @param changeSetName * The change set name. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withChangeSetName(String changeSetName) { setChangeSetName(changeSetName); return this; } /** *

* List of hook objects. *

* * @return List of hook objects. */ public java.util.List getHooks() { if (hooks == null) { hooks = new com.amazonaws.internal.SdkInternalList(); } return hooks; } /** *

* List of hook objects. *

* * @param hooks * List of hook objects. */ public void setHooks(java.util.Collection hooks) { if (hooks == null) { this.hooks = null; return; } this.hooks = new com.amazonaws.internal.SdkInternalList(hooks); } /** *

* List of hook objects. *

*

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

* * @param hooks * List of hook objects. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withHooks(ChangeSetHook... hooks) { if (this.hooks == null) { setHooks(new com.amazonaws.internal.SdkInternalList(hooks.length)); } for (ChangeSetHook ele : hooks) { this.hooks.add(ele); } return this; } /** *

* List of hook objects. *

* * @param hooks * List of hook objects. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withHooks(java.util.Collection hooks) { setHooks(hooks); return this; } /** *

* Provides the status of the change set hook. *

* * @param status * Provides the status of the change set hook. * @see ChangeSetHooksStatus */ public void setStatus(String status) { this.status = status; } /** *

* Provides the status of the change set hook. *

* * @return Provides the status of the change set hook. * @see ChangeSetHooksStatus */ public String getStatus() { return this.status; } /** *

* Provides the status of the change set hook. *

* * @param status * Provides the status of the change set hook. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeSetHooksStatus */ public DescribeChangeSetHooksResult withStatus(String status) { setStatus(status); return this; } /** *

* Provides the status of the change set hook. *

* * @param status * Provides the status of the change set hook. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeSetHooksStatus */ public DescribeChangeSetHooksResult withStatus(ChangeSetHooksStatus status) { this.status = status.toString(); return this; } /** *

* Pagination token, null or empty if no more results. *

* * @param nextToken * Pagination token, null or empty if no more results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Pagination token, null or empty if no more results. *

* * @return Pagination token, null or empty if no more results. */ public String getNextToken() { return this.nextToken; } /** *

* Pagination token, null or empty if no more results. *

* * @param nextToken * Pagination token, null or empty if no more results. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The stack identifier (stack ID). *

* * @param stackId * The stack identifier (stack ID). */ public void setStackId(String stackId) { this.stackId = stackId; } /** *

* The stack identifier (stack ID). *

* * @return The stack identifier (stack ID). */ public String getStackId() { return this.stackId; } /** *

* The stack identifier (stack ID). *

* * @param stackId * The stack identifier (stack ID). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withStackId(String stackId) { setStackId(stackId); return this; } /** *

* The stack name. *

* * @param stackName * The stack name. */ public void setStackName(String stackName) { this.stackName = stackName; } /** *

* The stack name. *

* * @return The stack name. */ public String getStackName() { return this.stackName; } /** *

* The stack name. *

* * @param stackName * The stack name. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeChangeSetHooksResult withStackName(String stackName) { setStackName(stackName); 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 (getChangeSetId() != null) sb.append("ChangeSetId: ").append(getChangeSetId()).append(","); if (getChangeSetName() != null) sb.append("ChangeSetName: ").append(getChangeSetName()).append(","); if (getHooks() != null) sb.append("Hooks: ").append(getHooks()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).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 DescribeChangeSetHooksResult == false) return false; DescribeChangeSetHooksResult other = (DescribeChangeSetHooksResult) obj; if (other.getChangeSetId() == null ^ this.getChangeSetId() == null) return false; if (other.getChangeSetId() != null && other.getChangeSetId().equals(this.getChangeSetId()) == false) return false; if (other.getChangeSetName() == null ^ this.getChangeSetName() == null) return false; if (other.getChangeSetName() != null && other.getChangeSetName().equals(this.getChangeSetName()) == false) return false; if (other.getHooks() == null ^ this.getHooks() == null) return false; if (other.getHooks() != null && other.getHooks().equals(this.getHooks()) == 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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == 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 + ((getChangeSetId() == null) ? 0 : getChangeSetId().hashCode()); hashCode = prime * hashCode + ((getChangeSetName() == null) ? 0 : getChangeSetName().hashCode()); hashCode = prime * hashCode + ((getHooks() == null) ? 0 : getHooks().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); return hashCode; } @Override public DescribeChangeSetHooksResult clone() { try { return (DescribeChangeSetHooksResult) 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