/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SecretsManager { namespace Model { /** */ class GetSecretValueRequest : public SecretsManagerRequest { public: AWS_SECRETSMANAGER_API GetSecretValueRequest(); // 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 "GetSecretValue"; } 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 retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The ARN or name of the secret to retrieve.

For an ARN, we recommend * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

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

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline GetSecretValueRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline GetSecretValueRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The unique identifier of the version of the secret to retrieve. If you * include both this parameter and VersionStage, the two parameters * must refer to the same secret version. If you don't specify either a * VersionStage or VersionId, then Secrets Manager * returns the AWSCURRENT version.

This value is typically a UUID-type * value with 32 hexadecimal digits.

*/ inline GetSecretValueRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline const Aws::String& GetVersionStage() const{ return m_versionStage; } /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline bool VersionStageHasBeenSet() const { return m_versionStageHasBeenSet; } /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline void SetVersionStage(const Aws::String& value) { m_versionStageHasBeenSet = true; m_versionStage = value; } /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline void SetVersionStage(Aws::String&& value) { m_versionStageHasBeenSet = true; m_versionStage = std::move(value); } /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline void SetVersionStage(const char* value) { m_versionStageHasBeenSet = true; m_versionStage.assign(value); } /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline GetSecretValueRequest& WithVersionStage(const Aws::String& value) { SetVersionStage(value); return *this;} /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline GetSecretValueRequest& WithVersionStage(Aws::String&& value) { SetVersionStage(std::move(value)); return *this;} /** *

The staging label of the version of the secret to retrieve.

Secrets * Manager uses staging labels to keep track of different versions during the * rotation process. If you include both this parameter and VersionId, * the two parameters must refer to the same secret version. If you don't specify * either a VersionStage or VersionId, Secrets Manager * returns the AWSCURRENT version.

*/ inline GetSecretValueRequest& WithVersionStage(const char* value) { SetVersionStage(value); return *this;} private: Aws::String m_secretId; bool m_secretIdHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; Aws::String m_versionStage; bool m_versionStageHasBeenSet = false; }; } // namespace Model } // namespace SecretsManager } // namespace Aws