AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RdsDbSnapshotConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/RdsDbSnapshotAttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration() = default;
42 AWS_ACCESSANALYZER_API RdsDbSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>& GetAttributes() const { return m_attributes; }
55 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
56 template<typename AttributesT = Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>>
57 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
58 template<typename AttributesT = Aws::Map<Aws::String, RdsDbSnapshotAttributeValue>>
59 RdsDbSnapshotConfiguration& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
60 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = RdsDbSnapshotAttributeValue>
61 RdsDbSnapshotConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
62 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
63 }
65
67
77 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
78 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
79 template<typename KmsKeyIdT = Aws::String>
80 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
81 template<typename KmsKeyIdT = Aws::String>
82 RdsDbSnapshotConfiguration& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
84 private:
85
87 bool m_attributesHasBeenSet = false;
88
89 Aws::String m_kmsKeyId;
90 bool m_kmsKeyIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AccessAnalyzer
95} // 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