/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace CloudFormation { namespace Model { /** */ class DeleteStackInstancesRequest : public CloudFormationRequest { public: AWS_CLOUDFORMATION_API DeleteStackInstancesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteStackInstances"; } AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; protected: AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline const Aws::String& GetStackSetName() const{ return m_stackSetName; } /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; } /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline void SetStackSetName(const Aws::String& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = value; } /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline void SetStackSetName(Aws::String&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::move(value); } /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline void SetStackSetName(const char* value) { m_stackSetNameHasBeenSet = true; m_stackSetName.assign(value); } /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline DeleteStackInstancesRequest& WithStackSetName(const Aws::String& value) { SetStackSetName(value); return *this;} /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline DeleteStackInstancesRequest& WithStackSetName(Aws::String&& value) { SetStackSetName(std::move(value)); return *this;} /** *

The name or unique ID of the stack set that you want to delete stack * instances for.

*/ inline DeleteStackInstancesRequest& WithStackSetName(const char* value) { SetStackSetName(value); return *this;} /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } /** *

[Self-managed permissions] The names of the Amazon Web Services accounts that * you want to delete stack instances for.

You can specify * Accounts or DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline const DeploymentTargets& GetDeploymentTargets() const{ return m_deploymentTargets; } /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; } /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline void SetDeploymentTargets(const DeploymentTargets& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = value; } /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline void SetDeploymentTargets(DeploymentTargets&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::move(value); } /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& WithDeploymentTargets(const DeploymentTargets& value) { SetDeploymentTargets(value); return *this;} /** *

[Service-managed permissions] The Organizations accounts from which to delete * stack instances.

You can specify Accounts or * DeploymentTargets, but not both.

*/ inline DeleteStackInstancesRequest& WithDeploymentTargets(DeploymentTargets&& value) { SetDeploymentTargets(std::move(value)); return *this;} /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline const Aws::Vector& GetRegions() const{ return m_regions; } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline void SetRegions(const Aws::Vector& value) { m_regionsHasBeenSet = true; m_regions = value; } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline void SetRegions(Aws::Vector&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline DeleteStackInstancesRequest& WithRegions(const Aws::Vector& value) { SetRegions(value); return *this;} /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline DeleteStackInstancesRequest& WithRegions(Aws::Vector&& value) { SetRegions(std::move(value)); return *this;} /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline DeleteStackInstancesRequest& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline DeleteStackInstancesRequest& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; } /** *

The Amazon Web Services Regions where you want to delete stack set * instances.

*/ inline DeleteStackInstancesRequest& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; } /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline const StackSetOperationPreferences& GetOperationPreferences() const{ return m_operationPreferences; } /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; } /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline void SetOperationPreferences(const StackSetOperationPreferences& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = value; } /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline void SetOperationPreferences(StackSetOperationPreferences&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::move(value); } /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline DeleteStackInstancesRequest& WithOperationPreferences(const StackSetOperationPreferences& value) { SetOperationPreferences(value); return *this;} /** *

Preferences for how CloudFormation performs this stack set operation.

*/ inline DeleteStackInstancesRequest& WithOperationPreferences(StackSetOperationPreferences&& value) { SetOperationPreferences(std::move(value)); return *this;} /** *

Removes the stack instances from the specified stack set, but doesn't delete * the stacks. You can't reassociate a retained stack or add an existing, saved * stack to a new stack set.

For more information, see Stack * set operation options.

*/ inline bool GetRetainStacks() const{ return m_retainStacks; } /** *

Removes the stack instances from the specified stack set, but doesn't delete * the stacks. You can't reassociate a retained stack or add an existing, saved * stack to a new stack set.

For more information, see Stack * set operation options.

*/ inline bool RetainStacksHasBeenSet() const { return m_retainStacksHasBeenSet; } /** *

Removes the stack instances from the specified stack set, but doesn't delete * the stacks. You can't reassociate a retained stack or add an existing, saved * stack to a new stack set.

For more information, see Stack * set operation options.

*/ inline void SetRetainStacks(bool value) { m_retainStacksHasBeenSet = true; m_retainStacks = value; } /** *

Removes the stack instances from the specified stack set, but doesn't delete * the stacks. You can't reassociate a retained stack or add an existing, saved * stack to a new stack set.

For more information, see Stack * set operation options.

*/ inline DeleteStackInstancesRequest& WithRetainStacks(bool value) { SetRetainStacks(value); return *this;} /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline const Aws::String& GetOperationId() const{ return m_operationId; } /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; } /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline void SetOperationId(const Aws::String& value) { m_operationIdHasBeenSet = true; m_operationId = value; } /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline void SetOperationId(Aws::String&& value) { m_operationIdHasBeenSet = true; m_operationId = std::move(value); } /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline void SetOperationId(const char* value) { m_operationIdHasBeenSet = true; m_operationId.assign(value); } /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline DeleteStackInstancesRequest& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;} /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline DeleteStackInstancesRequest& WithOperationId(Aws::String&& value) { SetOperationId(std::move(value)); return *this;} /** *

The unique identifier for this stack set operation.

If you don't * specify an operation ID, the SDK generates one automatically.

The * operation ID also functions as an idempotency token, to ensure that * CloudFormation performs the stack set operation only once, even if you retry the * request multiple times. You can retry stack set operation requests to ensure * that CloudFormation successfully received them.

Repeating this stack set * operation with a new operation ID retries all stack instances whose status is * OUTDATED.

*/ inline DeleteStackInstancesRequest& WithOperationId(const char* value) { SetOperationId(value); return *this;} /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline const CallAs& GetCallAs() const{ return m_callAs; } /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; } /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline void SetCallAs(const CallAs& value) { m_callAsHasBeenSet = true; m_callAs = value; } /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline void SetCallAs(CallAs&& value) { m_callAsHasBeenSet = true; m_callAs = std::move(value); } /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline DeleteStackInstancesRequest& WithCallAs(const CallAs& value) { SetCallAs(value); return *this;} /** *

[Service-managed permissions] Specifies whether you are acting as an account * administrator in the organization's management account or as a delegated * administrator in a member account.

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.

  • If you are signed in to a delegated * administrator account, specify DELEGATED_ADMIN.

    Your Amazon * Web Services account must be registered as a delegated administrator in the * management account. For more information, see Register * a delegated administrator in the CloudFormation User Guide.

  • *
*/ inline DeleteStackInstancesRequest& WithCallAs(CallAs&& value) { SetCallAs(std::move(value)); return *this;} private: Aws::String m_stackSetName; bool m_stackSetNameHasBeenSet = false; Aws::Vector m_accounts; bool m_accountsHasBeenSet = false; DeploymentTargets m_deploymentTargets; bool m_deploymentTargetsHasBeenSet = false; Aws::Vector m_regions; bool m_regionsHasBeenSet = false; StackSetOperationPreferences m_operationPreferences; bool m_operationPreferencesHasBeenSet = false; bool m_retainStacks; bool m_retainStacksHasBeenSet = false; Aws::String m_operationId; bool m_operationIdHasBeenSet = false; CallAs m_callAs; bool m_callAsHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws