Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  

The Stack data type.

  
  public class Stack implements SerializableCloneable {

    
Unique identifier of the stack.
  
      private String stackId;

    
The name associated with the stack.
  
      private String stackName;

    
User defined description associated with the stack.
  
      private String description;

    
A list of Parameter structures.
  
Time at which the stack was created.
  
      private java.util.Date creationTime;

    
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
  
      private java.util.Date lastUpdatedTime;

    
Current status of the stack.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

  
      private String stackStatus;

    
Success/failure message associated with the stack status.
  
      private String stackStatusReason;

    
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback
  
      private Boolean disableRollback;

    
SNS topic ARNs to which stack related events are published.

Constraints:
Length: 0 - 5

  
The amount of time within which stack creation should complete.

Constraints:
Range: 1 -

  
      private Integer timeoutInMinutes;

    
The capabilities allowed in the stack.
  
A list of output structures.
 
A list of Tags that specify cost allocation information for the stack.
 
Unique identifier of the stack.

Returns:
Unique identifier of the stack.
 
     public String getStackId() {
         return ;
     }
    
    
Unique identifier of the stack.

Parameters:
stackId Unique identifier of the stack.
 
     public void setStackId(String stackId) {
         this. = stackId;
     }
    
    
Unique identifier of the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackId Unique identifier of the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withStackId(String stackId) {
         this. = stackId;
         return this;
     }

    
The name associated with the stack.

Returns:
The name associated with the stack.
 
     public String getStackName() {
         return ;
     }
    
    
The name associated with the stack.

Parameters:
stackName The name associated with the stack.
 
     public void setStackName(String stackName) {
         this. = stackName;
     }
    
    
The name associated with the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackName The name associated with the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withStackName(String stackName) {
         this. = stackName;
         return this;
     }

    
User defined description associated with the stack.

Returns:
User defined description associated with the stack.
 
     public String getDescription() {
         return ;
     }
    
    
User defined description associated with the stack.

Parameters:
description User defined description associated with the stack.
 
     public void setDescription(String description) {
         this. = description;
     }
    
    
User defined description associated with the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description User defined description associated with the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withDescription(String description) {
         this. = description;
         return this;
     }

    
A list of Parameter structures.

Returns:
A list of Parameter structures.
 
     public java.util.List<ParametergetParameters() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Parameter>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of Parameter structures.

Parameters:
parameters A list of Parameter structures.
 
     public void setParameters(java.util.Collection<Parameterparameters) {
         if (parameters == null) {
             this. = null;
             return;
         }
         parametersCopy.addAll(parameters);
         this. = parametersCopy;
     }
    
    
A list of Parameter structures.

NOTE: This method appends the values to the existing list (if any). Use setParameters(java.util.Collection) or withParameters(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameters A list of Parameter structures.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withParameters(Parameter... parameters) {
         if (getParameters() == nullsetParameters(new java.util.ArrayList<Parameter>(parameters.length));
         for (Parameter value : parameters) {
             getParameters().add(value);
         }
         return this;
     }
    
    
A list of Parameter structures.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameters A list of Parameter structures.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withParameters(java.util.Collection<Parameterparameters) {
         if (parameters == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<ParameterparametersCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Parameter>(parameters.size());
             parametersCopy.addAll(parameters);
             this. = parametersCopy;
         }
 
         return this;
     }

    
Time at which the stack was created.

Returns:
Time at which the stack was created.
 
     public java.util.Date getCreationTime() {
         return ;
     }
    
    
Time at which the stack was created.

Parameters:
creationTime Time at which the stack was created.
 
     public void setCreationTime(java.util.Date creationTime) {
         this. = creationTime;
     }
    
    
Time at which the stack was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
creationTime Time at which the stack was created.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withCreationTime(java.util.Date creationTime) {
         this. = creationTime;
         return this;
     }

    
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

Returns:
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
 
     public java.util.Date getLastUpdatedTime() {
         return ;
     }
    
    
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

Parameters:
lastUpdatedTime The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
 
     public void setLastUpdatedTime(java.util.Date lastUpdatedTime) {
         this. = lastUpdatedTime;
     }
    
    
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

Returns a reference to this object so that method calls can be chained together.

Parameters:
lastUpdatedTime The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withLastUpdatedTime(java.util.Date lastUpdatedTime) {
         this. = lastUpdatedTime;
         return this;
     }

    
Current status of the stack.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

Returns:
Current status of the stack.
See also:
StackStatus
 
     public String getStackStatus() {
         return ;
     }
    
    
Current status of the stack.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

Parameters:
stackStatus Current status of the stack.
See also:
StackStatus
 
     public void setStackStatus(String stackStatus) {
         this. = stackStatus;
     }
    
    
Current status of the stack.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

Parameters:
stackStatus Current status of the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
StackStatus
 
     public Stack withStackStatus(String stackStatus) {
         this. = stackStatus;
         return this;
     }

    
Current status of the stack.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

Parameters:
stackStatus Current status of the stack.
See also:
StackStatus
 
     public void setStackStatus(StackStatus stackStatus) {
         this. = stackStatus.toString();
     }
    
    
Current status of the stack.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE

Parameters:
stackStatus Current status of the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
StackStatus
 
     public Stack withStackStatus(StackStatus stackStatus) {
         this. = stackStatus.toString();
         return this;
     }

    
Success/failure message associated with the stack status.

Returns:
Success/failure message associated with the stack status.
 
     public String getStackStatusReason() {
         return ;
     }
    
    
Success/failure message associated with the stack status.

Parameters:
stackStatusReason Success/failure message associated with the stack status.
 
     public void setStackStatusReason(String stackStatusReason) {
         this. = stackStatusReason;
     }
    
    
Success/failure message associated with the stack status.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackStatusReason Success/failure message associated with the stack status.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withStackStatusReason(String stackStatusReason) {
         this. = stackStatusReason;
         return this;
     }

    
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

Returns:
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback
 
     public Boolean isDisableRollback() {
         return ;
     }
    
    
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

Parameters:
disableRollback Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback
 
     public void setDisableRollback(Boolean disableRollback) {
         this. = disableRollback;
     }
    
    
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

Returns a reference to this object so that method calls can be chained together.

Parameters:
disableRollback Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withDisableRollback(Boolean disableRollback) {
         this. = disableRollback;
         return this;
     }

    
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

Returns:
Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback
 
     public Boolean getDisableRollback() {
         return ;
     }

    
SNS topic ARNs to which stack related events are published.

Constraints:
Length: 0 - 5

Returns:
SNS topic ARNs to which stack related events are published.
 
     public java.util.List<StringgetNotificationARNs() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
SNS topic ARNs to which stack related events are published.

Constraints:
Length: 0 - 5

Parameters:
notificationARNs SNS topic ARNs to which stack related events are published.
 
     public void setNotificationARNs(java.util.Collection<StringnotificationARNs) {
         if (notificationARNs == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringnotificationARNsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(notificationARNs.size());
         notificationARNsCopy.addAll(notificationARNs);
         this. = notificationARNsCopy;
     }
    
    
SNS topic ARNs to which stack related events are published.

NOTE: This method appends the values to the existing list (if any). Use setNotificationARNs(java.util.Collection) or withNotificationARNs(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
notificationARNs SNS topic ARNs to which stack related events are published.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withNotificationARNs(String... notificationARNs) {
         if (getNotificationARNs() == nullsetNotificationARNs(new java.util.ArrayList<String>(notificationARNs.length));
         for (String value : notificationARNs) {
             getNotificationARNs().add(value);
         }
         return this;
     }
    
    
SNS topic ARNs to which stack related events are published.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
notificationARNs SNS topic ARNs to which stack related events are published.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withNotificationARNs(java.util.Collection<StringnotificationARNs) {
         if (notificationARNs == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringnotificationARNsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(notificationARNs.size());
             notificationARNsCopy.addAll(notificationARNs);
             this. = notificationARNsCopy;
         }
 
         return this;
     }

    
The amount of time within which stack creation should complete.

Constraints:
Range: 1 -

Returns:
The amount of time within which stack creation should complete.
 
     public Integer getTimeoutInMinutes() {
         return ;
     }
    
    
The amount of time within which stack creation should complete.

Constraints:
Range: 1 -

Parameters:
timeoutInMinutes The amount of time within which stack creation should complete.
 
     public void setTimeoutInMinutes(Integer timeoutInMinutes) {
         this. = timeoutInMinutes;
     }
    
    
The amount of time within which stack creation should complete.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 -

Parameters:
timeoutInMinutes The amount of time within which stack creation should complete.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withTimeoutInMinutes(Integer timeoutInMinutes) {
         this. = timeoutInMinutes;
         return this;
     }

    
The capabilities allowed in the stack.

Returns:
The capabilities allowed in the stack.
 
     public java.util.List<StringgetCapabilities() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The capabilities allowed in the stack.

Parameters:
capabilities The capabilities allowed in the stack.
 
     public void setCapabilities(java.util.Collection<Stringcapabilities) {
         if (capabilities == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringcapabilitiesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(capabilities.size());
         capabilitiesCopy.addAll(capabilities);
         this. = capabilitiesCopy;
     }
    
    
The capabilities allowed in the stack.

NOTE: This method appends the values to the existing list (if any). Use setCapabilities(java.util.Collection) or withCapabilities(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
capabilities The capabilities allowed in the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withCapabilities(String... capabilities) {
         if (getCapabilities() == nullsetCapabilities(new java.util.ArrayList<String>(capabilities.length));
         for (String value : capabilities) {
             getCapabilities().add(value);
         }
         return this;
     }
    
    
The capabilities allowed in the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
capabilities The capabilities allowed in the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withCapabilities(java.util.Collection<Stringcapabilities) {
         if (capabilities == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringcapabilitiesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(capabilities.size());
             capabilitiesCopy.addAll(capabilities);
             this. = capabilitiesCopy;
         }
 
         return this;
     }

    
The capabilities allowed in the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
capabilities The capabilities allowed in the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withCapabilities(Capability... capabilities) {
         java.util.ArrayList<StringcapabilitiesCopy = new java.util.ArrayList<String>(capabilities.length);
         for (Capability member : capabilities) {
             capabilitiesCopy.add(member.toString());
         }
         if (getCapabilities() == null) {
             setCapabilities(capabilitiesCopy);
         } else {
             getCapabilities().addAll(capabilitiesCopy);
         }
         return this;
     }

    
A list of output structures.

Returns:
A list of output structures.
 
     public java.util.List<OutputgetOutputs() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Output>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of output structures.

Parameters:
outputs A list of output structures.
 
     public void setOutputs(java.util.Collection<Outputoutputs) {
         if (outputs == null) {
             this. = null;
             return;
         }
         outputsCopy.addAll(outputs);
         this. = outputsCopy;
     }
    
    
A list of output structures.

NOTE: This method appends the values to the existing list (if any). Use setOutputs(java.util.Collection) or withOutputs(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
outputs A list of output structures.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withOutputs(Output... outputs) {
         if (getOutputs() == nullsetOutputs(new java.util.ArrayList<Output>(outputs.length));
         for (Output value : outputs) {
             getOutputs().add(value);
         }
         return this;
     }
    
    
A list of output structures.

Returns a reference to this object so that method calls can be chained together.

Parameters:
outputs A list of output structures.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withOutputs(java.util.Collection<Outputoutputs) {
         if (outputs == null) {
             this. = null;
         } else {
             outputsCopy.addAll(outputs);
             this. = outputsCopy;
         }
 
         return this;
     }

    
A list of Tags that specify cost allocation information for the stack.

Returns:
A list of Tags that specify cost allocation information for the stack.
 
     public java.util.List<TaggetTags() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Tag>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of Tags that specify cost allocation information for the stack.

Parameters:
tags A list of Tags that specify cost allocation information for the stack.
 
     public void setTags(java.util.Collection<Tagtags) {
         if (tags == null) {
             this. = null;
             return;
         }
         tagsCopy.addAll(tags);
         this. = tagsCopy;
     }
    
    
A list of Tags that specify cost allocation information for the stack.

NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags A list of Tags that specify cost allocation information for the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withTags(Tag... tags) {
         if (getTags() == nullsetTags(new java.util.ArrayList<Tag>(tags.length));
         for (Tag value : tags) {
             getTags().add(value);
         }
         return this;
     }
    
    
A list of Tags that specify cost allocation information for the stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags A list of Tags that specify cost allocation information for the stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public Stack withTags(java.util.Collection<Tagtags) {
         if (tags == null) {
             this. = null;
         } else {
             tagsCopy.addAll(tags);
             this. = tagsCopy;
         }
 
         return this;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getStackId() != nullsb.append("StackId: " + getStackId() + ",");
         if (getStackName() != nullsb.append("StackName: " + getStackName() + ",");
         if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
         if (getParameters() != nullsb.append("Parameters: " + getParameters() + ",");
         if (getCreationTime() != nullsb.append("CreationTime: " + getCreationTime() + ",");
         if (getLastUpdatedTime() != nullsb.append("LastUpdatedTime: " + getLastUpdatedTime() + ",");
         if (getStackStatus() != nullsb.append("StackStatus: " + getStackStatus() + ",");
         if (getStackStatusReason() != nullsb.append("StackStatusReason: " + getStackStatusReason() + ",");
         if (isDisableRollback() != nullsb.append("DisableRollback: " + isDisableRollback() + ",");
         if (getNotificationARNs() != nullsb.append("NotificationARNs: " + getNotificationARNs() + ",");
         if (getTimeoutInMinutes() != nullsb.append("TimeoutInMinutes: " + getTimeoutInMinutes() + ",");
         if (getCapabilities() != nullsb.append("Capabilities: " + getCapabilities() + ",");
         if (getOutputs() != nullsb.append("Outputs: " + getOutputs() + ",");
         if (getTags() != nullsb.append("Tags: " + getTags() );
         sb.append("}");
         return sb.toString();
     }
     
     @Override
     public int hashCode() {
         final int prime = 31;
         int hashCode = 1;
         
         hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); 
         hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); 
         hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
         hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); 
         hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); 
         hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); 
         hashCode = prime * hashCode + ((getStackStatus() == null) ? 0 : getStackStatus().hashCode()); 
         hashCode = prime * hashCode + ((getStackStatusReason() == null) ? 0 : getStackStatusReason().hashCode()); 
         hashCode = prime * hashCode + ((isDisableRollback() == null) ? 0 : isDisableRollback().hashCode()); 
         hashCode = prime * hashCode + ((getNotificationARNs() == null) ? 0 : getNotificationARNs().hashCode()); 
         hashCode = prime * hashCode + ((getTimeoutInMinutes() == null) ? 0 : getTimeoutInMinutes().hashCode()); 
         hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); 
         hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode()); 
         hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof Stack == falsereturn false;
         Stack other = (Stack)obj;
         
         if (other.getStackId() == null ^ this.getStackId() == nullreturn false;
         if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == falsereturn false
         if (other.getStackName() == null ^ this.getStackName() == nullreturn false;
         if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == falsereturn false
         if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
         if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
         if (other.getParameters() == null ^ this.getParameters() == nullreturn false;
         if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == falsereturn false
         if (other.getCreationTime() == null ^ this.getCreationTime() == nullreturn false;
         if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == falsereturn false
         if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == nullreturn false;
         if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == falsereturn false
         if (other.getStackStatus() == null ^ this.getStackStatus() == nullreturn false;
         if (other.getStackStatus() != null && other.getStackStatus().equals(this.getStackStatus()) == falsereturn false
         if (other.getStackStatusReason() == null ^ this.getStackStatusReason() == nullreturn false;
         if (other.getStackStatusReason() != null && other.getStackStatusReason().equals(this.getStackStatusReason()) == falsereturn false
         if (other.isDisableRollback() == null ^ this.isDisableRollback() == nullreturn false;
         if (other.isDisableRollback() != null && other.isDisableRollback().equals(this.isDisableRollback()) == falsereturn false
         if (other.getNotificationARNs() == null ^ this.getNotificationARNs() == nullreturn false;
         if (other.getNotificationARNs() != null && other.getNotificationARNs().equals(this.getNotificationARNs()) == falsereturn false
         if (other.getTimeoutInMinutes() == null ^ this.getTimeoutInMinutes() == nullreturn false;
         if (other.getTimeoutInMinutes() != null && other.getTimeoutInMinutes().equals(this.getTimeoutInMinutes()) == falsereturn false
         if (other.getCapabilities() == null ^ this.getCapabilities() == nullreturn false;
         if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == falsereturn false
         if (other.getOutputs() == null ^ this.getOutputs() == nullreturn false;
         if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == falsereturn false
         if (other.getTags() == null ^ this.getTags() == nullreturn false;
         if (other.getTags() != null && other.getTags().equals(this.getTags()) == falsereturn false
         return true;
     }
     
     @Override
     public Stack clone() {
         try {
             return (Stacksuper.clone();
         
         } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X