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

com.amazonaws.services.cloudformation.model.TemplateSummary 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 2019-2024 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;

/**
 * 

* The summary of a generated template. *

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

* The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . *

*/ private String generatedTemplateId; /** *

* The name of the generated template. *

*/ private String generatedTemplateName; /** *

* The status of the template generation. Supported values are: *

*
    *
  • *

    * CreatePending - the creation of the template is pending. *

    *
  • *
  • *

    * CreateInProgress - the creation of the template is in progress. *

    *
  • *
  • *

    * DeletePending - the deletion of the template is pending. *

    *
  • *
  • *

    * DeleteInProgress - the deletion of the template is in progress. *

    *
  • *
  • *

    * UpdatePending - the update of the template is pending. *

    *
  • *
  • *

    * UpdateInProgress - the update of the template is in progress. *

    *
  • *
  • *

    * Failed - the template operation failed. *

    *
  • *
  • *

    * Complete - the template operation is complete. *

    *
  • *
*/ private String status; /** *

* The reason for the current template generation status. This will provide more details if a failure happened. *

*/ private String statusReason; /** *

* The time the generated template was created. *

*/ private java.util.Date creationTime; /** *

* The time the generated template was last updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. *

*/ private Integer numberOfResources; /** *

* The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . *

* * @param generatedTemplateId * The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . */ public void setGeneratedTemplateId(String generatedTemplateId) { this.generatedTemplateId = generatedTemplateId; } /** *

* The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . *

* * @return The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . */ public String getGeneratedTemplateId() { return this.generatedTemplateId; } /** *

* The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . *

* * @param generatedTemplateId * The Amazon Resource Name (ARN) of the generated template. The format is * arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, * arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc * . * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withGeneratedTemplateId(String generatedTemplateId) { setGeneratedTemplateId(generatedTemplateId); return this; } /** *

* The name of the generated template. *

* * @param generatedTemplateName * The name of the generated template. */ public void setGeneratedTemplateName(String generatedTemplateName) { this.generatedTemplateName = generatedTemplateName; } /** *

* The name of the generated template. *

* * @return The name of the generated template. */ public String getGeneratedTemplateName() { return this.generatedTemplateName; } /** *

* The name of the generated template. *

* * @param generatedTemplateName * The name of the generated template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withGeneratedTemplateName(String generatedTemplateName) { setGeneratedTemplateName(generatedTemplateName); return this; } /** *

* The status of the template generation. Supported values are: *

*
    *
  • *

    * CreatePending - the creation of the template is pending. *

    *
  • *
  • *

    * CreateInProgress - the creation of the template is in progress. *

    *
  • *
  • *

    * DeletePending - the deletion of the template is pending. *

    *
  • *
  • *

    * DeleteInProgress - the deletion of the template is in progress. *

    *
  • *
  • *

    * UpdatePending - the update of the template is pending. *

    *
  • *
  • *

    * UpdateInProgress - the update of the template is in progress. *

    *
  • *
  • *

    * Failed - the template operation failed. *

    *
  • *
  • *

    * Complete - the template operation is complete. *

    *
  • *
* * @param status * The status of the template generation. Supported values are:

*
    *
  • *

    * CreatePending - the creation of the template is pending. *

    *
  • *
  • *

    * CreateInProgress - the creation of the template is in progress. *

    *
  • *
  • *

    * DeletePending - the deletion of the template is pending. *

    *
  • *
  • *

    * DeleteInProgress - the deletion of the template is in progress. *

    *
  • *
  • *

    * UpdatePending - the update of the template is pending. *

    *
  • *
  • *

    * UpdateInProgress - the update of the template is in progress. *

    *
  • *
  • *

    * Failed - the template operation failed. *

    *
  • *
  • *

    * Complete - the template operation is complete. *

    *
  • * @see GeneratedTemplateStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the template generation. Supported values are: *

    *
      *
    • *

      * CreatePending - the creation of the template is pending. *

      *
    • *
    • *

      * CreateInProgress - the creation of the template is in progress. *

      *
    • *
    • *

      * DeletePending - the deletion of the template is pending. *

      *
    • *
    • *

      * DeleteInProgress - the deletion of the template is in progress. *

      *
    • *
    • *

      * UpdatePending - the update of the template is pending. *

      *
    • *
    • *

      * UpdateInProgress - the update of the template is in progress. *

      *
    • *
    • *

      * Failed - the template operation failed. *

      *
    • *
    • *

      * Complete - the template operation is complete. *

      *
    • *
    * * @return The status of the template generation. Supported values are:

    *
      *
    • *

      * CreatePending - the creation of the template is pending. *

      *
    • *
    • *

      * CreateInProgress - the creation of the template is in progress. *

      *
    • *
    • *

      * DeletePending - the deletion of the template is pending. *

      *
    • *
    • *

      * DeleteInProgress - the deletion of the template is in progress. *

      *
    • *
    • *

      * UpdatePending - the update of the template is pending. *

      *
    • *
    • *

      * UpdateInProgress - the update of the template is in progress. *

      *
    • *
    • *

      * Failed - the template operation failed. *

      *
    • *
    • *

      * Complete - the template operation is complete. *

      *
    • * @see GeneratedTemplateStatus */ public String getStatus() { return this.status; } /** *

      * The status of the template generation. Supported values are: *

      *
        *
      • *

        * CreatePending - the creation of the template is pending. *

        *
      • *
      • *

        * CreateInProgress - the creation of the template is in progress. *

        *
      • *
      • *

        * DeletePending - the deletion of the template is pending. *

        *
      • *
      • *

        * DeleteInProgress - the deletion of the template is in progress. *

        *
      • *
      • *

        * UpdatePending - the update of the template is pending. *

        *
      • *
      • *

        * UpdateInProgress - the update of the template is in progress. *

        *
      • *
      • *

        * Failed - the template operation failed. *

        *
      • *
      • *

        * Complete - the template operation is complete. *

        *
      • *
      * * @param status * The status of the template generation. Supported values are:

      *
        *
      • *

        * CreatePending - the creation of the template is pending. *

        *
      • *
      • *

        * CreateInProgress - the creation of the template is in progress. *

        *
      • *
      • *

        * DeletePending - the deletion of the template is pending. *

        *
      • *
      • *

        * DeleteInProgress - the deletion of the template is in progress. *

        *
      • *
      • *

        * UpdatePending - the update of the template is pending. *

        *
      • *
      • *

        * UpdateInProgress - the update of the template is in progress. *

        *
      • *
      • *

        * Failed - the template operation failed. *

        *
      • *
      • *

        * Complete - the template operation is complete. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see GeneratedTemplateStatus */ public TemplateSummary withStatus(String status) { setStatus(status); return this; } /** *

        * The status of the template generation. Supported values are: *

        *
          *
        • *

          * CreatePending - the creation of the template is pending. *

          *
        • *
        • *

          * CreateInProgress - the creation of the template is in progress. *

          *
        • *
        • *

          * DeletePending - the deletion of the template is pending. *

          *
        • *
        • *

          * DeleteInProgress - the deletion of the template is in progress. *

          *
        • *
        • *

          * UpdatePending - the update of the template is pending. *

          *
        • *
        • *

          * UpdateInProgress - the update of the template is in progress. *

          *
        • *
        • *

          * Failed - the template operation failed. *

          *
        • *
        • *

          * Complete - the template operation is complete. *

          *
        • *
        * * @param status * The status of the template generation. Supported values are:

        *
          *
        • *

          * CreatePending - the creation of the template is pending. *

          *
        • *
        • *

          * CreateInProgress - the creation of the template is in progress. *

          *
        • *
        • *

          * DeletePending - the deletion of the template is pending. *

          *
        • *
        • *

          * DeleteInProgress - the deletion of the template is in progress. *

          *
        • *
        • *

          * UpdatePending - the update of the template is pending. *

          *
        • *
        • *

          * UpdateInProgress - the update of the template is in progress. *

          *
        • *
        • *

          * Failed - the template operation failed. *

          *
        • *
        • *

          * Complete - the template operation is complete. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see GeneratedTemplateStatus */ public TemplateSummary withStatus(GeneratedTemplateStatus status) { this.status = status.toString(); return this; } /** *

          * The reason for the current template generation status. This will provide more details if a failure happened. *

          * * @param statusReason * The reason for the current template generation status. This will provide more details if a failure * happened. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

          * The reason for the current template generation status. This will provide more details if a failure happened. *

          * * @return The reason for the current template generation status. This will provide more details if a failure * happened. */ public String getStatusReason() { return this.statusReason; } /** *

          * The reason for the current template generation status. This will provide more details if a failure happened. *

          * * @param statusReason * The reason for the current template generation status. This will provide more details if a failure * happened. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

          * The time the generated template was created. *

          * * @param creationTime * The time the generated template was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

          * The time the generated template was created. *

          * * @return The time the generated template was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

          * The time the generated template was created. *

          * * @param creationTime * The time the generated template was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

          * The time the generated template was last updated. *

          * * @param lastUpdatedTime * The time the generated template was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

          * The time the generated template was last updated. *

          * * @return The time the generated template was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

          * The time the generated template was last updated. *

          * * @param lastUpdatedTime * The time the generated template was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

          * The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. *

          * * @param numberOfResources * The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. */ public void setNumberOfResources(Integer numberOfResources) { this.numberOfResources = numberOfResources; } /** *

          * The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. *

          * * @return The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. */ public Integer getNumberOfResources() { return this.numberOfResources; } /** *

          * The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. *

          * * @param numberOfResources * The number of resources in the generated template. This is a total of resources in pending, in-progress, * completed, and failed states. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateSummary withNumberOfResources(Integer numberOfResources) { setNumberOfResources(numberOfResources); 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 (getGeneratedTemplateId() != null) sb.append("GeneratedTemplateId: ").append(getGeneratedTemplateId()).append(","); if (getGeneratedTemplateName() != null) sb.append("GeneratedTemplateName: ").append(getGeneratedTemplateName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getNumberOfResources() != null) sb.append("NumberOfResources: ").append(getNumberOfResources()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TemplateSummary == false) return false; TemplateSummary other = (TemplateSummary) obj; if (other.getGeneratedTemplateId() == null ^ this.getGeneratedTemplateId() == null) return false; if (other.getGeneratedTemplateId() != null && other.getGeneratedTemplateId().equals(this.getGeneratedTemplateId()) == false) return false; if (other.getGeneratedTemplateName() == null ^ this.getGeneratedTemplateName() == null) return false; if (other.getGeneratedTemplateName() != null && other.getGeneratedTemplateName().equals(this.getGeneratedTemplateName()) == 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.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getNumberOfResources() == null ^ this.getNumberOfResources() == null) return false; if (other.getNumberOfResources() != null && other.getNumberOfResources().equals(this.getNumberOfResources()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGeneratedTemplateId() == null) ? 0 : getGeneratedTemplateId().hashCode()); hashCode = prime * hashCode + ((getGeneratedTemplateName() == null) ? 0 : getGeneratedTemplateName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getNumberOfResources() == null) ? 0 : getNumberOfResources().hashCode()); return hashCode; } @Override public TemplateSummary clone() { try { return (TemplateSummary) 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