AWS SDK for C++  1.9.157
AWS SDK for C++
SecretsManagerSecretConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AccessAnalyzer
22 {
23 namespace Model
24 {
25 
47  {
48  public:
53 
54 
58  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
59 
63  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
64 
68  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
69 
73  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
74 
78  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
79 
83  inline SecretsManagerSecretConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
84 
88  inline SecretsManagerSecretConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
89 
93  inline SecretsManagerSecretConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
94 
95 
100  inline const Aws::String& GetSecretPolicy() const{ return m_secretPolicy; }
101 
106  inline bool SecretPolicyHasBeenSet() const { return m_secretPolicyHasBeenSet; }
107 
112  inline void SetSecretPolicy(const Aws::String& value) { m_secretPolicyHasBeenSet = true; m_secretPolicy = value; }
113 
118  inline void SetSecretPolicy(Aws::String&& value) { m_secretPolicyHasBeenSet = true; m_secretPolicy = std::move(value); }
119 
124  inline void SetSecretPolicy(const char* value) { m_secretPolicyHasBeenSet = true; m_secretPolicy.assign(value); }
125 
130  inline SecretsManagerSecretConfiguration& WithSecretPolicy(const Aws::String& value) { SetSecretPolicy(value); return *this;}
131 
136  inline SecretsManagerSecretConfiguration& WithSecretPolicy(Aws::String&& value) { SetSecretPolicy(std::move(value)); return *this;}
137 
142  inline SecretsManagerSecretConfiguration& WithSecretPolicy(const char* value) { SetSecretPolicy(value); return *this;}
143 
144  private:
145 
146  Aws::String m_kmsKeyId;
147  bool m_kmsKeyIdHasBeenSet;
148 
149  Aws::String m_secretPolicy;
150  bool m_secretPolicyHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace AccessAnalyzer
155 } // namespace Aws
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: SecretsManagerSecretConfiguration.h:73
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SecretPolicyHasBeenSet
bool SecretPolicyHasBeenSet() const
Definition: SecretsManagerSecretConfiguration.h:106
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::GetSecretPolicy
const Aws::String & GetSecretPolicy() const
Definition: SecretsManagerSecretConfiguration.h:100
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetSecretPolicy
void SetSecretPolicy(const Aws::String &value)
Definition: SecretsManagerSecretConfiguration.h:112
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SecretsManagerSecretConfiguration
SecretsManagerSecretConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetSecretPolicy
void SetSecretPolicy(const char *value)
Definition: SecretsManagerSecretConfiguration.h:124
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithKmsKeyId
SecretsManagerSecretConfiguration & WithKmsKeyId(const Aws::String &value)
Definition: SecretsManagerSecretConfiguration.h:83
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: SecretsManagerSecretConfiguration.h:58
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithSecretPolicy
SecretsManagerSecretConfiguration & WithSecretPolicy(const Aws::String &value)
Definition: SecretsManagerSecretConfiguration.h:130
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithKmsKeyId
SecretsManagerSecretConfiguration & WithKmsKeyId(const char *value)
Definition: SecretsManagerSecretConfiguration.h:93
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration
Definition: SecretsManagerSecretConfiguration.h:47
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: SecretsManagerSecretConfiguration.h:63
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithSecretPolicy
SecretsManagerSecretConfiguration & WithSecretPolicy(Aws::String &&value)
Definition: SecretsManagerSecretConfiguration.h:136
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::operator=
SecretsManagerSecretConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SecretsManagerSecretConfiguration
SecretsManagerSecretConfiguration()
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithSecretPolicy
SecretsManagerSecretConfiguration & WithSecretPolicy(const char *value)
Definition: SecretsManagerSecretConfiguration.h:142
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: SecretsManagerSecretConfiguration.h:68
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: SecretsManagerSecretConfiguration.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::SetSecretPolicy
void SetSecretPolicy(Aws::String &&value)
Definition: SecretsManagerSecretConfiguration.h:118
Aws::AccessAnalyzer::Model::SecretsManagerSecretConfiguration::WithKmsKeyId
SecretsManagerSecretConfiguration & WithKmsKeyId(Aws::String &&value)
Definition: SecretsManagerSecretConfiguration.h:88