/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SecretsManager { namespace Model { /** */ class RemoveRegionsFromReplicationRequest : public SecretsManagerRequest { public: AWS_SECRETSMANAGER_API RemoveRegionsFromReplicationRequest(); // 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 "RemoveRegionsFromReplication"; } AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override; AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN or name of the secret.

*/ inline const Aws::String& GetSecretId() const{ return m_secretId; } /** *

The ARN or name of the secret.

*/ inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; } /** *

The ARN or name of the secret.

*/ inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; } /** *

The ARN or name of the secret.

*/ inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); } /** *

The ARN or name of the secret.

*/ inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); } /** *

The ARN or name of the secret.

*/ inline RemoveRegionsFromReplicationRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;} /** *

The ARN or name of the secret.

*/ inline RemoveRegionsFromReplicationRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;} /** *

The ARN or name of the secret.

*/ inline RemoveRegionsFromReplicationRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;} /** *

The Regions of the replicas to remove.

*/ inline const Aws::Vector& GetRemoveReplicaRegions() const{ return m_removeReplicaRegions; } /** *

The Regions of the replicas to remove.

*/ inline bool RemoveReplicaRegionsHasBeenSet() const { return m_removeReplicaRegionsHasBeenSet; } /** *

The Regions of the replicas to remove.

*/ inline void SetRemoveReplicaRegions(const Aws::Vector& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions = value; } /** *

The Regions of the replicas to remove.

*/ inline void SetRemoveReplicaRegions(Aws::Vector&& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions = std::move(value); } /** *

The Regions of the replicas to remove.

*/ inline RemoveRegionsFromReplicationRequest& WithRemoveReplicaRegions(const Aws::Vector& value) { SetRemoveReplicaRegions(value); return *this;} /** *

The Regions of the replicas to remove.

*/ inline RemoveRegionsFromReplicationRequest& WithRemoveReplicaRegions(Aws::Vector&& value) { SetRemoveReplicaRegions(std::move(value)); return *this;} /** *

The Regions of the replicas to remove.

*/ inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(const Aws::String& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(value); return *this; } /** *

The Regions of the replicas to remove.

*/ inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(Aws::String&& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(std::move(value)); return *this; } /** *

The Regions of the replicas to remove.

*/ inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(const char* value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(value); return *this; } private: Aws::String m_secretId; bool m_secretIdHasBeenSet = false; Aws::Vector m_removeReplicaRegions; bool m_removeReplicaRegionsHasBeenSet = false; }; } // namespace Model } // namespace SecretsManager } // namespace Aws