AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RdsDbClusterSnapshotConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/RdsDbClusterSnapshotAttributeValue.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer {
22namespace Model {
23
36 public:
37 AWS_ACCESSANALYZER_API RdsDbClusterSnapshotConfiguration() = default;
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline const Aws::Map<Aws::String, RdsDbClusterSnapshotAttributeValue>& GetAttributes() const { return m_attributes; }
50 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
51 template <typename AttributesT = Aws::Map<Aws::String, RdsDbClusterSnapshotAttributeValue>>
52 void SetAttributes(AttributesT&& value) {
53 m_attributesHasBeenSet = true;
54 m_attributes = std::forward<AttributesT>(value);
55 }
56 template <typename AttributesT = Aws::Map<Aws::String, RdsDbClusterSnapshotAttributeValue>>
58 SetAttributes(std::forward<AttributesT>(value));
59 return *this;
60 }
61 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = RdsDbClusterSnapshotAttributeValue>
62 RdsDbClusterSnapshotConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
65 return *this;
66 }
68
70
81 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
82 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
83 template <typename KmsKeyIdT = Aws::String>
84 void SetKmsKeyId(KmsKeyIdT&& value) {
85 m_kmsKeyIdHasBeenSet = true;
86 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
87 }
88 template <typename KmsKeyIdT = Aws::String>
90 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_kmsKeyId;
98 bool m_attributesHasBeenSet = false;
99 bool m_kmsKeyIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace AccessAnalyzer
104} // namespace Aws
AWS_ACCESSANALYZER_API RdsDbClusterSnapshotConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsDbClusterSnapshotConfiguration & WithAttributes(AttributesT &&value)
AWS_ACCESSANALYZER_API RdsDbClusterSnapshotConfiguration()=default
AWS_ACCESSANALYZER_API RdsDbClusterSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
RdsDbClusterSnapshotConfiguration & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, RdsDbClusterSnapshotAttributeValue > & GetAttributes() const
RdsDbClusterSnapshotConfiguration & WithKmsKeyId(KmsKeyIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue