AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
61 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
62 inline EbsSnapshotConfiguration& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
63 inline EbsSnapshotConfiguration& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
64 inline EbsSnapshotConfiguration& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
65 inline EbsSnapshotConfiguration& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
66 inline EbsSnapshotConfiguration& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
68
70
82 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
83 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
84 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
85 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
86 inline EbsSnapshotConfiguration& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
87 inline EbsSnapshotConfiguration& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
88 inline EbsSnapshotConfiguration& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
89 inline EbsSnapshotConfiguration& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
90 inline EbsSnapshotConfiguration& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
92
94
104 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
105 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
106 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
107 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
108 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
109 inline EbsSnapshotConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
110 inline EbsSnapshotConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
111 inline EbsSnapshotConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
113 private:
114
115 Aws::Vector<Aws::String> m_userIds;
116 bool m_userIdsHasBeenSet = false;
117
119 bool m_groupsHasBeenSet = false;
120
121 Aws::String m_kmsKeyId;
122 bool m_kmsKeyIdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace AccessAnalyzer
127} // namespace Aws
EbsSnapshotConfiguration & AddUserIds(const Aws::String &value)
AWS_ACCESSANALYZER_API EbsSnapshotConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
EbsSnapshotConfiguration & AddGroups(const char *value)
EbsSnapshotConfiguration & AddUserIds(const char *value)
EbsSnapshotConfiguration & WithGroups(const Aws::Vector< Aws::String > &value)
EbsSnapshotConfiguration & AddUserIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetUserIds(Aws::Vector< Aws::String > &&value)
void SetGroups(const Aws::Vector< Aws::String > &value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
AWS_ACCESSANALYZER_API EbsSnapshotConfiguration(Aws::Utils::Json::JsonView jsonValue)
EbsSnapshotConfiguration & WithUserIds(const Aws::Vector< Aws::String > &value)
EbsSnapshotConfiguration & WithUserIds(Aws::Vector< Aws::String > &&value)
EbsSnapshotConfiguration & AddGroups(const Aws::String &value)
EbsSnapshotConfiguration & WithKmsKeyId(const char *value)
EbsSnapshotConfiguration & AddGroups(Aws::String &&value)
EbsSnapshotConfiguration & WithKmsKeyId(const Aws::String &value)
EbsSnapshotConfiguration & WithKmsKeyId(Aws::String &&value)
EbsSnapshotConfiguration & WithGroups(Aws::Vector< Aws::String > &&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