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

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

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the stack set. The name must be unique in the Region where you create your stack set. *

*/ private String stackSetName; /** *

* The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a time. *

*

* Specify either StackIds or StackIdsUrl. *

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

* The Amazon S3 URL which contains list of stack ids to be inputted. *

*

* Specify either StackIds or StackIdsUrl. *

*/ private String stackIdsUrl; /** *

* The list of OU ID's to which the stacks being imported has to be mapped as deployment target. *

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

* The user-specified preferences for how CloudFormation performs a stack set operation. *

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. *

*/ private StackSetOperationPreferences operationPreferences; /** *

* A unique, user defined, identifier for the stack set operation. *

*/ private String operationId; /** *

* By default, SELF is specified. Use SELF for stack sets with self-managed permissions. *

*
    *
  • *

    * If you are signed in to the management account, specify SELF. *

    *
  • *
  • *

    * For service managed stack sets, specify DELEGATED_ADMIN. *

    *
  • *
*/ private String callAs; /** *

* The name of the stack set. The name must be unique in the Region where you create your stack set. *

* * @param stackSetName * The name of the stack set. The name must be unique in the Region where you create your stack set. */ public void setStackSetName(String stackSetName) { this.stackSetName = stackSetName; } /** *

* The name of the stack set. The name must be unique in the Region where you create your stack set. *

* * @return The name of the stack set. The name must be unique in the Region where you create your stack set. */ public String getStackSetName() { return this.stackSetName; } /** *

* The name of the stack set. The name must be unique in the Region where you create your stack set. *

* * @param stackSetName * The name of the stack set. The name must be unique in the Region where you create your stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withStackSetName(String stackSetName) { setStackSetName(stackSetName); return this; } /** *

* The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a time. *

*

* Specify either StackIds or StackIdsUrl. *

* * @return The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a * time.

*

* Specify either StackIds or StackIdsUrl. */ public java.util.List getStackIds() { if (stackIds == null) { stackIds = new com.amazonaws.internal.SdkInternalList(); } return stackIds; } /** *

* The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a time. *

*

* Specify either StackIds or StackIdsUrl. *

* * @param stackIds * The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a * time.

*

* Specify either StackIds or StackIdsUrl. */ public void setStackIds(java.util.Collection stackIds) { if (stackIds == null) { this.stackIds = null; return; } this.stackIds = new com.amazonaws.internal.SdkInternalList(stackIds); } /** *

* The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a time. *

*

* Specify either StackIds or StackIdsUrl. *

*

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

* * @param stackIds * The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a * time.

*

* Specify either StackIds or StackIdsUrl. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withStackIds(String... stackIds) { if (this.stackIds == null) { setStackIds(new com.amazonaws.internal.SdkInternalList(stackIds.length)); } for (String ele : stackIds) { this.stackIds.add(ele); } return this; } /** *

* The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a time. *

*

* Specify either StackIds or StackIdsUrl. *

* * @param stackIds * The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per stack set at a * time.

*

* Specify either StackIds or StackIdsUrl. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withStackIds(java.util.Collection stackIds) { setStackIds(stackIds); return this; } /** *

* The Amazon S3 URL which contains list of stack ids to be inputted. *

*

* Specify either StackIds or StackIdsUrl. *

* * @param stackIdsUrl * The Amazon S3 URL which contains list of stack ids to be inputted.

*

* Specify either StackIds or StackIdsUrl. */ public void setStackIdsUrl(String stackIdsUrl) { this.stackIdsUrl = stackIdsUrl; } /** *

* The Amazon S3 URL which contains list of stack ids to be inputted. *

*

* Specify either StackIds or StackIdsUrl. *

* * @return The Amazon S3 URL which contains list of stack ids to be inputted.

*

* Specify either StackIds or StackIdsUrl. */ public String getStackIdsUrl() { return this.stackIdsUrl; } /** *

* The Amazon S3 URL which contains list of stack ids to be inputted. *

*

* Specify either StackIds or StackIdsUrl. *

* * @param stackIdsUrl * The Amazon S3 URL which contains list of stack ids to be inputted.

*

* Specify either StackIds or StackIdsUrl. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withStackIdsUrl(String stackIdsUrl) { setStackIdsUrl(stackIdsUrl); return this; } /** *

* The list of OU ID's to which the stacks being imported has to be mapped as deployment target. *

* * @return The list of OU ID's to which the stacks being imported has to be mapped as deployment target. */ public java.util.List getOrganizationalUnitIds() { if (organizationalUnitIds == null) { organizationalUnitIds = new com.amazonaws.internal.SdkInternalList(); } return organizationalUnitIds; } /** *

* The list of OU ID's to which the stacks being imported has to be mapped as deployment target. *

* * @param organizationalUnitIds * The list of OU ID's to which the stacks being imported has to be mapped as deployment target. */ public void setOrganizationalUnitIds(java.util.Collection organizationalUnitIds) { if (organizationalUnitIds == null) { this.organizationalUnitIds = null; return; } this.organizationalUnitIds = new com.amazonaws.internal.SdkInternalList(organizationalUnitIds); } /** *

* The list of OU ID's to which the stacks being imported has to be mapped as deployment target. *

*

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

* * @param organizationalUnitIds * The list of OU ID's to which the stacks being imported has to be mapped as deployment target. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withOrganizationalUnitIds(String... organizationalUnitIds) { if (this.organizationalUnitIds == null) { setOrganizationalUnitIds(new com.amazonaws.internal.SdkInternalList(organizationalUnitIds.length)); } for (String ele : organizationalUnitIds) { this.organizationalUnitIds.add(ele); } return this; } /** *

* The list of OU ID's to which the stacks being imported has to be mapped as deployment target. *

* * @param organizationalUnitIds * The list of OU ID's to which the stacks being imported has to be mapped as deployment target. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withOrganizationalUnitIds(java.util.Collection organizationalUnitIds) { setOrganizationalUnitIds(organizationalUnitIds); return this; } /** *

* The user-specified preferences for how CloudFormation performs a stack set operation. *

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. *

* * @param operationPreferences * The user-specified preferences for how CloudFormation performs a stack set operation.

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. */ public void setOperationPreferences(StackSetOperationPreferences operationPreferences) { this.operationPreferences = operationPreferences; } /** *

* The user-specified preferences for how CloudFormation performs a stack set operation. *

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. *

* * @return The user-specified preferences for how CloudFormation performs a stack set operation.

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. */ public StackSetOperationPreferences getOperationPreferences() { return this.operationPreferences; } /** *

* The user-specified preferences for how CloudFormation performs a stack set operation. *

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. *

* * @param operationPreferences * The user-specified preferences for how CloudFormation performs a stack set operation.

*

* For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withOperationPreferences(StackSetOperationPreferences operationPreferences) { setOperationPreferences(operationPreferences); return this; } /** *

* A unique, user defined, identifier for the stack set operation. *

* * @param operationId * A unique, user defined, identifier for the stack set operation. */ public void setOperationId(String operationId) { this.operationId = operationId; } /** *

* A unique, user defined, identifier for the stack set operation. *

* * @return A unique, user defined, identifier for the stack set operation. */ public String getOperationId() { return this.operationId; } /** *

* A unique, user defined, identifier for the stack set operation. *

* * @param operationId * A unique, user defined, identifier for the stack set operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportStacksToStackSetRequest withOperationId(String operationId) { setOperationId(operationId); return this; } /** *

* By default, SELF is specified. Use SELF for stack sets with self-managed permissions. *

*
    *
  • *

    * If you are signed in to the management account, specify SELF. *

    *
  • *
  • *

    * For service managed stack sets, specify DELEGATED_ADMIN. *

    *
  • *
* * @param callAs * By default, SELF is specified. Use SELF for stack sets with self-managed * permissions.

*
    *
  • *

    * If you are signed in to the management account, specify SELF. *

    *
  • *
  • *

    * For service managed stack sets, specify DELEGATED_ADMIN. *

    *
  • * @see CallAs */ public void setCallAs(String callAs) { this.callAs = callAs; } /** *

    * By default, SELF is specified. Use SELF for stack sets with self-managed permissions. *

    *
      *
    • *

      * If you are signed in to the management account, specify SELF. *

      *
    • *
    • *

      * For service managed stack sets, specify DELEGATED_ADMIN. *

      *
    • *
    * * @return By default, SELF is specified. Use SELF for stack sets with self-managed * permissions.

    *
      *
    • *

      * If you are signed in to the management account, specify SELF. *

      *
    • *
    • *

      * For service managed stack sets, specify DELEGATED_ADMIN. *

      *
    • * @see CallAs */ public String getCallAs() { return this.callAs; } /** *

      * By default, SELF is specified. Use SELF for stack sets with self-managed permissions. *

      *
        *
      • *

        * If you are signed in to the management account, specify SELF. *

        *
      • *
      • *

        * For service managed stack sets, specify DELEGATED_ADMIN. *

        *
      • *
      * * @param callAs * By default, SELF is specified. Use SELF for stack sets with self-managed * permissions.

      *
        *
      • *

        * If you are signed in to the management account, specify SELF. *

        *
      • *
      • *

        * For service managed stack sets, specify DELEGATED_ADMIN. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see CallAs */ public ImportStacksToStackSetRequest withCallAs(String callAs) { setCallAs(callAs); return this; } /** *

        * By default, SELF is specified. Use SELF for stack sets with self-managed permissions. *

        *
          *
        • *

          * If you are signed in to the management account, specify SELF. *

          *
        • *
        • *

          * For service managed stack sets, specify DELEGATED_ADMIN. *

          *
        • *
        * * @param callAs * By default, SELF is specified. Use SELF for stack sets with self-managed * permissions.

        *
          *
        • *

          * If you are signed in to the management account, specify SELF. *

          *
        • *
        • *

          * For service managed stack sets, specify DELEGATED_ADMIN. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see CallAs */ public ImportStacksToStackSetRequest withCallAs(CallAs callAs) { this.callAs = callAs.toString(); 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 (getStackSetName() != null) sb.append("StackSetName: ").append(getStackSetName()).append(","); if (getStackIds() != null) sb.append("StackIds: ").append(getStackIds()).append(","); if (getStackIdsUrl() != null) sb.append("StackIdsUrl: ").append(getStackIdsUrl()).append(","); if (getOrganizationalUnitIds() != null) sb.append("OrganizationalUnitIds: ").append(getOrganizationalUnitIds()).append(","); if (getOperationPreferences() != null) sb.append("OperationPreferences: ").append(getOperationPreferences()).append(","); if (getOperationId() != null) sb.append("OperationId: ").append(getOperationId()).append(","); if (getCallAs() != null) sb.append("CallAs: ").append(getCallAs()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImportStacksToStackSetRequest == false) return false; ImportStacksToStackSetRequest other = (ImportStacksToStackSetRequest) obj; if (other.getStackSetName() == null ^ this.getStackSetName() == null) return false; if (other.getStackSetName() != null && other.getStackSetName().equals(this.getStackSetName()) == false) return false; if (other.getStackIds() == null ^ this.getStackIds() == null) return false; if (other.getStackIds() != null && other.getStackIds().equals(this.getStackIds()) == false) return false; if (other.getStackIdsUrl() == null ^ this.getStackIdsUrl() == null) return false; if (other.getStackIdsUrl() != null && other.getStackIdsUrl().equals(this.getStackIdsUrl()) == false) return false; if (other.getOrganizationalUnitIds() == null ^ this.getOrganizationalUnitIds() == null) return false; if (other.getOrganizationalUnitIds() != null && other.getOrganizationalUnitIds().equals(this.getOrganizationalUnitIds()) == false) return false; if (other.getOperationPreferences() == null ^ this.getOperationPreferences() == null) return false; if (other.getOperationPreferences() != null && other.getOperationPreferences().equals(this.getOperationPreferences()) == false) return false; if (other.getOperationId() == null ^ this.getOperationId() == null) return false; if (other.getOperationId() != null && other.getOperationId().equals(this.getOperationId()) == false) return false; if (other.getCallAs() == null ^ this.getCallAs() == null) return false; if (other.getCallAs() != null && other.getCallAs().equals(this.getCallAs()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetName() == null) ? 0 : getStackSetName().hashCode()); hashCode = prime * hashCode + ((getStackIds() == null) ? 0 : getStackIds().hashCode()); hashCode = prime * hashCode + ((getStackIdsUrl() == null) ? 0 : getStackIdsUrl().hashCode()); hashCode = prime * hashCode + ((getOrganizationalUnitIds() == null) ? 0 : getOrganizationalUnitIds().hashCode()); hashCode = prime * hashCode + ((getOperationPreferences() == null) ? 0 : getOperationPreferences().hashCode()); hashCode = prime * hashCode + ((getOperationId() == null) ? 0 : getOperationId().hashCode()); hashCode = prime * hashCode + ((getCallAs() == null) ? 0 : getCallAs().hashCode()); return hashCode; } @Override public ImportStacksToStackSetRequest clone() { return (ImportStacksToStackSetRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy