AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RdsDbSnapshotConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/RdsDbSnapshotAttributeValue.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
35 public:
36 AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration() = default;
37 AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
48 inline const Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>& GetAttributes() const { return m_attributes; }
49 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
50 template <typename AttributesT = Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>>
51 void SetAttributes(AttributesT&& value) {
52 m_attributesHasBeenSet = true;
53 m_attributes = std::forward<AttributesT>(value);
54 }
55 template <typename AttributesT = Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>>
57 SetAttributes(std::forward<AttributesT>(value));
58 return *this;
59 }
60 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = RdsDbSnapshotAttributeValue>
61 RdsDbSnapshotConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
62 m_attributesHasBeenSet = true;
63 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
64 return *this;
65 }
67
69
79 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
80 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
81 template <typename KmsKeyIdT = Aws::String>
82 void SetKmsKeyId(KmsKeyIdT&& value) {
83 m_kmsKeyIdHasBeenSet = true;
84 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
85 }
86 template <typename KmsKeyIdT = Aws::String>
88 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
89 return *this;
90 }
92 private:
94
95 Aws::String m_kmsKeyId;
96 bool m_attributesHasBeenSet = false;
97 bool m_kmsKeyIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AccessAnalyzer
102} // namespace Aws
AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
RdsDbSnapshotConfiguration & WithAttributes(AttributesT &&value)
AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, RdsDbSnapshotAttributeValue > & GetAttributes() const
RdsDbSnapshotConfiguration & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
RdsDbSnapshotConfiguration & WithKmsKeyId(KmsKeyIdT &&value)
AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration()=default
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