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

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

/**
 * 

* Contains detailed information about the specified stack resource. *

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

* The name associated with the stack. *

*/ private String stackName; /** *

* Unique identifier of the stack. *

*/ private String stackId; /** *

* The logical name of the resource specified in the template. *

*/ private String logicalResourceId; /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. *

*/ private String physicalResourceId; /** *

* Type of resource. ((For more information, go to AWS * Resource Types Reference in the AWS CloudFormation User Guide.) *

*/ private String resourceType; /** *

* Time the status was updated. *

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

* Current status of the resource. *

*/ private String resourceStatus; /** *

* Success/failure message associated with the resource. *

*/ private String resourceStatusReason; /** *

* User defined description associated with the resource. *

*/ private String description; /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. *

*/ private String metadata; /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. *

*/ private StackResourceDriftInformation driftInformation; /** *

* The name associated with the stack. *

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

* The name associated with the stack. *

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

* The name associated with the stack. *

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

* Unique identifier of the stack. *

* * @param stackId * Unique identifier of the stack. */ public void setStackId(String stackId) { this.stackId = stackId; } /** *

* Unique identifier of the stack. *

* * @return Unique identifier of the stack. */ public String getStackId() { return this.stackId; } /** *

* Unique identifier of the stack. *

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

* The logical name of the resource specified in the template. *

* * @param logicalResourceId * The logical name of the resource specified in the template. */ public void setLogicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; } /** *

* The logical name of the resource specified in the template. *

* * @return The logical name of the resource specified in the template. */ public String getLogicalResourceId() { return this.logicalResourceId; } /** *

* The logical name of the resource specified in the template. *

* * @param logicalResourceId * The logical name of the resource specified in the template. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withLogicalResourceId(String logicalResourceId) { setLogicalResourceId(logicalResourceId); return this; } /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. *

* * @param physicalResourceId * The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. */ public void setPhysicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; } /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. *

* * @return The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. */ public String getPhysicalResourceId() { return this.physicalResourceId; } /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. *

* * @param physicalResourceId * The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS * CloudFormation. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withPhysicalResourceId(String physicalResourceId) { setPhysicalResourceId(physicalResourceId); return this; } /** *

* Type of resource. ((For more information, go to AWS * Resource Types Reference in the AWS CloudFormation User Guide.) *

* * @param resourceType * Type of resource. ((For more information, go to * AWS Resource Types Reference in the AWS CloudFormation User Guide.) */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* Type of resource. ((For more information, go to AWS * Resource Types Reference in the AWS CloudFormation User Guide.) *

* * @return Type of resource. ((For more information, go to * AWS Resource Types Reference in the AWS CloudFormation User Guide.) */ public String getResourceType() { return this.resourceType; } /** *

* Type of resource. ((For more information, go to AWS * Resource Types Reference in the AWS CloudFormation User Guide.) *

* * @param resourceType * Type of resource. ((For more information, go to * AWS Resource Types Reference in the AWS CloudFormation User Guide.) * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* Time the status was updated. *

* * @param lastUpdatedTimestamp * Time the status was updated. */ public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; } /** *

* Time the status was updated. *

* * @return Time the status was updated. */ public java.util.Date getLastUpdatedTimestamp() { return this.lastUpdatedTimestamp; } /** *

* Time the status was updated. *

* * @param lastUpdatedTimestamp * Time the status was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); return this; } /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @see ResourceStatus */ public void setResourceStatus(String resourceStatus) { this.resourceStatus = resourceStatus; } /** *

* Current status of the resource. *

* * @return Current status of the resource. * @see ResourceStatus */ public String getResourceStatus() { return this.resourceStatus; } /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ public StackResourceDetail withResourceStatus(String resourceStatus) { setResourceStatus(resourceStatus); return this; } /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @see ResourceStatus */ public void setResourceStatus(ResourceStatus resourceStatus) { withResourceStatus(resourceStatus); } /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ public StackResourceDetail withResourceStatus(ResourceStatus resourceStatus) { this.resourceStatus = resourceStatus.toString(); return this; } /** *

* Success/failure message associated with the resource. *

* * @param resourceStatusReason * Success/failure message associated with the resource. */ public void setResourceStatusReason(String resourceStatusReason) { this.resourceStatusReason = resourceStatusReason; } /** *

* Success/failure message associated with the resource. *

* * @return Success/failure message associated with the resource. */ public String getResourceStatusReason() { return this.resourceStatusReason; } /** *

* Success/failure message associated with the resource. *

* * @param resourceStatusReason * Success/failure message associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withResourceStatusReason(String resourceStatusReason) { setResourceStatusReason(resourceStatusReason); return this; } /** *

* User defined description associated with the resource. *

* * @param description * User defined description associated with the resource. */ public void setDescription(String description) { this.description = description; } /** *

* User defined description associated with the resource. *

* * @return User defined description associated with the resource. */ public String getDescription() { return this.description; } /** *

* User defined description associated with the resource. *

* * @param description * User defined description associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withDescription(String description) { setDescription(description); return this; } /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. *

* * @param metadata * The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. */ public void setMetadata(String metadata) { this.metadata = metadata; } /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. *

* * @return The content of the Metadata attribute declared for the resource. For more information, see * * Metadata Attribute in the AWS CloudFormation User Guide. */ public String getMetadata() { return this.metadata; } /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. *

* * @param metadata * The content of the Metadata attribute declared for the resource. For more information, see Metadata * Attribute in the AWS CloudFormation User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withMetadata(String metadata) { setMetadata(metadata); return this; } /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. *

* * @param driftInformation * Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. */ public void setDriftInformation(StackResourceDriftInformation driftInformation) { this.driftInformation = driftInformation; } /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. *

* * @return Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. */ public StackResourceDriftInformation getDriftInformation() { return this.driftInformation; } /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. *

* * @param driftInformation * Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see Detecting * Unregulated Configuration Changes to Stacks and Resources. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceDetail withDriftInformation(StackResourceDriftInformation driftInformation) { setDriftInformation(driftInformation); 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 (getStackName() != null) sb.append("StackName: ").append(getStackName()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getLogicalResourceId() != null) sb.append("LogicalResourceId: ").append(getLogicalResourceId()).append(","); if (getPhysicalResourceId() != null) sb.append("PhysicalResourceId: ").append(getPhysicalResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); if (getResourceStatus() != null) sb.append("ResourceStatus: ").append(getResourceStatus()).append(","); if (getResourceStatusReason() != null) sb.append("ResourceStatusReason: ").append(getResourceStatusReason()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getDriftInformation() != null) sb.append("DriftInformation: ").append(getDriftInformation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StackResourceDetail == false) return false; StackResourceDetail other = (StackResourceDetail) obj; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == 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.getLogicalResourceId() == null ^ this.getLogicalResourceId() == null) return false; if (other.getLogicalResourceId() != null && other.getLogicalResourceId().equals(this.getLogicalResourceId()) == false) return false; if (other.getPhysicalResourceId() == null ^ this.getPhysicalResourceId() == null) return false; if (other.getPhysicalResourceId() != null && other.getPhysicalResourceId().equals(this.getPhysicalResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) return false; if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) return false; if (other.getResourceStatus() == null ^ this.getResourceStatus() == null) return false; if (other.getResourceStatus() != null && other.getResourceStatus().equals(this.getResourceStatus()) == false) return false; if (other.getResourceStatusReason() == null ^ this.getResourceStatusReason() == null) return false; if (other.getResourceStatusReason() != null && other.getResourceStatusReason().equals(this.getResourceStatusReason()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getDriftInformation() == null ^ this.getDriftInformation() == null) return false; if (other.getDriftInformation() != null && other.getDriftInformation().equals(this.getDriftInformation()) == 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 + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getLogicalResourceId() == null) ? 0 : getLogicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceId() == null) ? 0 : getPhysicalResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getResourceStatus() == null) ? 0 : getResourceStatus().hashCode()); hashCode = prime * hashCode + ((getResourceStatusReason() == null) ? 0 : getResourceStatusReason().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getDriftInformation() == null) ? 0 : getDriftInformation().hashCode()); return hashCode; } @Override public StackResourceDetail clone() { try { return (StackResourceDetail) 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