AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecretsManagerSecretConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer
22{
23namespace Model
24{
25
47 {
48 public:
49 AWS_ACCESSANALYZER_API SecretsManagerSecretConfiguration();
52 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
60 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
61 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
62 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
63 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
64 inline SecretsManagerSecretConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
65 inline SecretsManagerSecretConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
66 inline SecretsManagerSecretConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
68
70
74 inline const Aws::String& GetSecretPolicy() const{ return m_secretPolicy; }
75 inline bool SecretPolicyHasBeenSet() const { return m_secretPolicyHasBeenSet; }
76 inline void SetSecretPolicy(const Aws::String& value) { m_secretPolicyHasBeenSet = true; m_secretPolicy = value; }
77 inline void SetSecretPolicy(Aws::String&& value) { m_secretPolicyHasBeenSet = true; m_secretPolicy = std::move(value); }
78 inline void SetSecretPolicy(const char* value) { m_secretPolicyHasBeenSet = true; m_secretPolicy.assign(value); }
80 inline SecretsManagerSecretConfiguration& WithSecretPolicy(Aws::String&& value) { SetSecretPolicy(std::move(value)); return *this;}
81 inline SecretsManagerSecretConfiguration& WithSecretPolicy(const char* value) { SetSecretPolicy(value); return *this;}
83 private:
84
85 Aws::String m_kmsKeyId;
86 bool m_kmsKeyIdHasBeenSet = false;
87
88 Aws::String m_secretPolicy;
89 bool m_secretPolicyHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AccessAnalyzer
94} // namespace Aws
SecretsManagerSecretConfiguration & WithKmsKeyId(const Aws::String &value)
AWS_ACCESSANALYZER_API SecretsManagerSecretConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API SecretsManagerSecretConfiguration(Aws::Utils::Json::JsonView jsonValue)
SecretsManagerSecretConfiguration & WithSecretPolicy(Aws::String &&value)
SecretsManagerSecretConfiguration & WithSecretPolicy(const Aws::String &value)
SecretsManagerSecretConfiguration & WithSecretPolicy(const char *value)
SecretsManagerSecretConfiguration & WithKmsKeyId(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
SecretsManagerSecretConfiguration & WithKmsKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue