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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

The ARN or name of the secret to replicate.

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

A list of Regions in which to replicate the secret.

*/ inline const Aws::Vector& GetAddReplicaRegions() const{ return m_addReplicaRegions; } /** *

A list of Regions in which to replicate the secret.

*/ inline bool AddReplicaRegionsHasBeenSet() const { return m_addReplicaRegionsHasBeenSet; } /** *

A list of Regions in which to replicate the secret.

*/ inline void SetAddReplicaRegions(const Aws::Vector& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = value; } /** *

A list of Regions in which to replicate the secret.

*/ inline void SetAddReplicaRegions(Aws::Vector&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = std::move(value); } /** *

A list of Regions in which to replicate the secret.

*/ inline ReplicateSecretToRegionsRequest& WithAddReplicaRegions(const Aws::Vector& value) { SetAddReplicaRegions(value); return *this;} /** *

A list of Regions in which to replicate the secret.

*/ inline ReplicateSecretToRegionsRequest& WithAddReplicaRegions(Aws::Vector&& value) { SetAddReplicaRegions(std::move(value)); return *this;} /** *

A list of Regions in which to replicate the secret.

*/ inline ReplicateSecretToRegionsRequest& AddAddReplicaRegions(const ReplicaRegionType& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(value); return *this; } /** *

A list of Regions in which to replicate the secret.

*/ inline ReplicateSecretToRegionsRequest& AddAddReplicaRegions(ReplicaRegionType&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(std::move(value)); return *this; } /** *

Specifies whether to overwrite a secret with the same name in the destination * Region. By default, secrets aren't overwritten.

*/ inline bool GetForceOverwriteReplicaSecret() const{ return m_forceOverwriteReplicaSecret; } /** *

Specifies whether to overwrite a secret with the same name in the destination * Region. By default, secrets aren't overwritten.

*/ inline bool ForceOverwriteReplicaSecretHasBeenSet() const { return m_forceOverwriteReplicaSecretHasBeenSet; } /** *

Specifies whether to overwrite a secret with the same name in the destination * Region. By default, secrets aren't overwritten.

*/ inline void SetForceOverwriteReplicaSecret(bool value) { m_forceOverwriteReplicaSecretHasBeenSet = true; m_forceOverwriteReplicaSecret = value; } /** *

Specifies whether to overwrite a secret with the same name in the destination * Region. By default, secrets aren't overwritten.

*/ inline ReplicateSecretToRegionsRequest& WithForceOverwriteReplicaSecret(bool value) { SetForceOverwriteReplicaSecret(value); return *this;} private: Aws::String m_secretId; bool m_secretIdHasBeenSet = false; Aws::Vector m_addReplicaRegions; bool m_addReplicaRegionsHasBeenSet = false; bool m_forceOverwriteReplicaSecret; bool m_forceOverwriteReplicaSecretHasBeenSet = false; }; } // namespace Model } // namespace SecretsManager } // namespace Aws