AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSecretValueRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SecretsManager
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SECRETSMANAGER_API GetSecretValueRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetSecretValue"; }
31
32 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
45 inline const Aws::String& GetSecretId() const{ return m_secretId; }
46 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
47 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
48 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
49 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
50 inline GetSecretValueRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
51 inline GetSecretValueRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
52 inline GetSecretValueRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
54
56
65 inline const Aws::String& GetVersionId() const{ return m_versionId; }
66 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
67 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
68 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
69 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
70 inline GetSecretValueRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
71 inline GetSecretValueRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
72 inline GetSecretValueRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
74
76
84 inline const Aws::String& GetVersionStage() const{ return m_versionStage; }
85 inline bool VersionStageHasBeenSet() const { return m_versionStageHasBeenSet; }
86 inline void SetVersionStage(const Aws::String& value) { m_versionStageHasBeenSet = true; m_versionStage = value; }
87 inline void SetVersionStage(Aws::String&& value) { m_versionStageHasBeenSet = true; m_versionStage = std::move(value); }
88 inline void SetVersionStage(const char* value) { m_versionStageHasBeenSet = true; m_versionStage.assign(value); }
89 inline GetSecretValueRequest& WithVersionStage(const Aws::String& value) { SetVersionStage(value); return *this;}
90 inline GetSecretValueRequest& WithVersionStage(Aws::String&& value) { SetVersionStage(std::move(value)); return *this;}
91 inline GetSecretValueRequest& WithVersionStage(const char* value) { SetVersionStage(value); return *this;}
93 private:
94
95 Aws::String m_secretId;
96 bool m_secretIdHasBeenSet = false;
97
98 Aws::String m_versionId;
99 bool m_versionIdHasBeenSet = false;
100
101 Aws::String m_versionStage;
102 bool m_versionStageHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SecretsManager
107} // namespace Aws
GetSecretValueRequest & WithSecretId(const Aws::String &value)
GetSecretValueRequest & WithSecretId(const char *value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSecretValueRequest & WithVersionId(Aws::String &&value)
GetSecretValueRequest & WithVersionStage(Aws::String &&value)
GetSecretValueRequest & WithVersionStage(const Aws::String &value)
GetSecretValueRequest & WithVersionId(const Aws::String &value)
GetSecretValueRequest & WithVersionStage(const char *value)
GetSecretValueRequest & WithVersionId(const char *value)
GetSecretValueRequest & WithSecretId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String