AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EbsSnapshotConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
34 public:
35 AWS_ACCESSANALYZER_API EbsSnapshotConfiguration() = default;
36 AWS_ACCESSANALYZER_API EbsSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
52 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
53 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
54 template <typename UserIdsT = Aws::Vector<Aws::String>>
55 void SetUserIds(UserIdsT&& value) {
56 m_userIdsHasBeenSet = true;
57 m_userIds = std::forward<UserIdsT>(value);
58 }
59 template <typename UserIdsT = Aws::Vector<Aws::String>>
61 SetUserIds(std::forward<UserIdsT>(value));
62 return *this;
63 }
64 template <typename UserIdsT = Aws::String>
66 m_userIdsHasBeenSet = true;
67 m_userIds.emplace_back(std::forward<UserIdsT>(value));
68 return *this;
69 }
71
73
85 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
86 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
87 template <typename GroupsT = Aws::Vector<Aws::String>>
88 void SetGroups(GroupsT&& value) {
89 m_groupsHasBeenSet = true;
90 m_groups = std::forward<GroupsT>(value);
91 }
92 template <typename GroupsT = Aws::Vector<Aws::String>>
94 SetGroups(std::forward<GroupsT>(value));
95 return *this;
96 }
97 template <typename GroupsT = Aws::String>
99 m_groupsHasBeenSet = true;
100 m_groups.emplace_back(std::forward<GroupsT>(value));
101 return *this;
102 }
104
106
116 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
117 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
118 template <typename KmsKeyIdT = Aws::String>
119 void SetKmsKeyId(KmsKeyIdT&& value) {
120 m_kmsKeyIdHasBeenSet = true;
121 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
122 }
123 template <typename KmsKeyIdT = Aws::String>
125 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::Vector<Aws::String> m_userIds;
131
133
134 Aws::String m_kmsKeyId;
135 bool m_userIdsHasBeenSet = false;
136 bool m_groupsHasBeenSet = false;
137 bool m_kmsKeyIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace AccessAnalyzer
142} // namespace Aws
AWS_ACCESSANALYZER_API EbsSnapshotConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
EbsSnapshotConfiguration & AddGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
EbsSnapshotConfiguration & AddUserIds(UserIdsT &&value)
AWS_ACCESSANALYZER_API EbsSnapshotConfiguration()=default
AWS_ACCESSANALYZER_API EbsSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue)
EbsSnapshotConfiguration & WithUserIds(UserIdsT &&value)
EbsSnapshotConfiguration & WithKmsKeyId(KmsKeyIdT &&value)
EbsSnapshotConfiguration & WithGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetUserIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue