AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EbsSnapshotConfiguration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ACCESSANALYZER_API EbsSnapshotConfiguration() = default;
41 AWS_ACCESSANALYZER_API EbsSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
58 inline const Aws::Vector<Aws::String>& GetUserIds() const { return m_userIds; }
59 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
60 template<typename UserIdsT = Aws::Vector<Aws::String>>
61 void SetUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds = std::forward<UserIdsT>(value); }
62 template<typename UserIdsT = Aws::Vector<Aws::String>>
63 EbsSnapshotConfiguration& WithUserIds(UserIdsT&& value) { SetUserIds(std::forward<UserIdsT>(value)); return *this;}
64 template<typename UserIdsT = Aws::String>
65 EbsSnapshotConfiguration& AddUserIds(UserIdsT&& value) { m_userIdsHasBeenSet = true; m_userIds.emplace_back(std::forward<UserIdsT>(value)); return *this; }
67
69
81 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
82 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
83 template<typename GroupsT = Aws::Vector<Aws::String>>
84 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
85 template<typename GroupsT = Aws::Vector<Aws::String>>
86 EbsSnapshotConfiguration& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
87 template<typename GroupsT = Aws::String>
88 EbsSnapshotConfiguration& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
90
92
102 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
103 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
104 template<typename KmsKeyIdT = Aws::String>
105 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
106 template<typename KmsKeyIdT = Aws::String>
107 EbsSnapshotConfiguration& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
109 private:
110
111 Aws::Vector<Aws::String> m_userIds;
112 bool m_userIdsHasBeenSet = false;
113
115 bool m_groupsHasBeenSet = false;
116
117 Aws::String m_kmsKeyId;
118 bool m_kmsKeyIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace AccessAnalyzer
123} // 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