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

com.amazonaws.services.cloudformation.model.DetectStackDriftRequest 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 2017-2022 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 DetectStackDriftRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the stack for which you want to detect drift. *

*/ private String stackName; /** *

* The logical names of any resources you want to use as filters. *

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

* The name of the stack for which you want to detect drift. *

* * @param stackName * The name of the stack for which you want to detect drift. */ public void setStackName(String stackName) { this.stackName = stackName; } /** *

* The name of the stack for which you want to detect drift. *

* * @return The name of the stack for which you want to detect drift. */ public String getStackName() { return this.stackName; } /** *

* The name of the stack for which you want to detect drift. *

* * @param stackName * The name of the stack for which you want to detect drift. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectStackDriftRequest withStackName(String stackName) { setStackName(stackName); return this; } /** *

* The logical names of any resources you want to use as filters. *

* * @return The logical names of any resources you want to use as filters. */ public java.util.List getLogicalResourceIds() { if (logicalResourceIds == null) { logicalResourceIds = new com.amazonaws.internal.SdkInternalList(); } return logicalResourceIds; } /** *

* The logical names of any resources you want to use as filters. *

* * @param logicalResourceIds * The logical names of any resources you want to use as filters. */ public void setLogicalResourceIds(java.util.Collection logicalResourceIds) { if (logicalResourceIds == null) { this.logicalResourceIds = null; return; } this.logicalResourceIds = new com.amazonaws.internal.SdkInternalList(logicalResourceIds); } /** *

* The logical names of any resources you want to use as filters. *

*

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

* * @param logicalResourceIds * The logical names of any resources you want to use as filters. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectStackDriftRequest withLogicalResourceIds(String... logicalResourceIds) { if (this.logicalResourceIds == null) { setLogicalResourceIds(new com.amazonaws.internal.SdkInternalList(logicalResourceIds.length)); } for (String ele : logicalResourceIds) { this.logicalResourceIds.add(ele); } return this; } /** *

* The logical names of any resources you want to use as filters. *

* * @param logicalResourceIds * The logical names of any resources you want to use as filters. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectStackDriftRequest withLogicalResourceIds(java.util.Collection logicalResourceIds) { setLogicalResourceIds(logicalResourceIds); 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 (getLogicalResourceIds() != null) sb.append("LogicalResourceIds: ").append(getLogicalResourceIds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectStackDriftRequest == false) return false; DetectStackDriftRequest other = (DetectStackDriftRequest) obj; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false) return false; if (other.getLogicalResourceIds() == null ^ this.getLogicalResourceIds() == null) return false; if (other.getLogicalResourceIds() != null && other.getLogicalResourceIds().equals(this.getLogicalResourceIds()) == 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 + ((getLogicalResourceIds() == null) ? 0 : getLogicalResourceIds().hashCode()); return hashCode; } @Override public DetectStackDriftRequest clone() { return (DetectStackDriftRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy