AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceV2.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/FindingResourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/ResourceData.h>
12#include <aws/guardduty/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API ResourceV2() = default;
40 AWS_GUARDDUTY_API ResourceV2(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API ResourceV2& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetUid() const { return m_uid; }
50 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
51 template<typename UidT = Aws::String>
52 void SetUid(UidT&& value) { m_uidHasBeenSet = true; m_uid = std::forward<UidT>(value); }
53 template<typename UidT = Aws::String>
54 ResourceV2& WithUid(UidT&& value) { SetUid(std::forward<UidT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 ResourceV2& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetAccountId() const { return m_accountId; }
74 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
75 template<typename AccountIdT = Aws::String>
76 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
77 template<typename AccountIdT = Aws::String>
78 ResourceV2& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
80
82
85 inline FindingResourceType GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 inline void SetResourceType(FindingResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
88 inline ResourceV2& WithResourceType(FindingResourceType value) { SetResourceType(value); return *this;}
90
92
95 inline const Aws::String& GetRegion() const { return m_region; }
96 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
97 template<typename RegionT = Aws::String>
98 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
99 template<typename RegionT = Aws::String>
100 ResourceV2& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
102
104
107 inline const Aws::String& GetService() const { return m_service; }
108 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
109 template<typename ServiceT = Aws::String>
110 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
111 template<typename ServiceT = Aws::String>
112 ResourceV2& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
114
116
120 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
121 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
122 template<typename CloudPartitionT = Aws::String>
123 void SetCloudPartition(CloudPartitionT&& value) { m_cloudPartitionHasBeenSet = true; m_cloudPartition = std::forward<CloudPartitionT>(value); }
124 template<typename CloudPartitionT = Aws::String>
125 ResourceV2& WithCloudPartition(CloudPartitionT&& value) { SetCloudPartition(std::forward<CloudPartitionT>(value)); return *this;}
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Vector<Tag>>
137 ResourceV2& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsT = Tag>
139 ResourceV2& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
141
143
147 inline const ResourceData& GetData() const { return m_data; }
148 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
149 template<typename DataT = ResourceData>
150 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
151 template<typename DataT = ResourceData>
152 ResourceV2& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
154 private:
155
156 Aws::String m_uid;
157 bool m_uidHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_accountId;
163 bool m_accountIdHasBeenSet = false;
164
166 bool m_resourceTypeHasBeenSet = false;
167
168 Aws::String m_region;
169 bool m_regionHasBeenSet = false;
170
171 Aws::String m_service;
172 bool m_serviceHasBeenSet = false;
173
174 Aws::String m_cloudPartition;
175 bool m_cloudPartitionHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
180 ResourceData m_data;
181 bool m_dataHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace GuardDuty
186} // namespace Aws
ResourceV2 & WithName(NameT &&value)
Definition ResourceV2.h:66
ResourceV2 & WithTags(TagsT &&value)
Definition ResourceV2.h:137
const Aws::String & GetUid() const
Definition ResourceV2.h:49
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceV2 & WithAccountId(AccountIdT &&value)
Definition ResourceV2.h:78
const Aws::Vector< Tag > & GetTags() const
Definition ResourceV2.h:132
AWS_GUARDDUTY_API ResourceV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceV2 & WithResourceType(FindingResourceType value)
Definition ResourceV2.h:88
void SetCloudPartition(CloudPartitionT &&value)
Definition ResourceV2.h:123
const Aws::String & GetName() const
Definition ResourceV2.h:61
const Aws::String & GetCloudPartition() const
Definition ResourceV2.h:120
ResourceV2 & WithUid(UidT &&value)
Definition ResourceV2.h:54
const Aws::String & GetService() const
Definition ResourceV2.h:107
ResourceV2 & WithService(ServiceT &&value)
Definition ResourceV2.h:112
FindingResourceType GetResourceType() const
Definition ResourceV2.h:85
ResourceV2 & WithCloudPartition(CloudPartitionT &&value)
Definition ResourceV2.h:125
const ResourceData & GetData() const
Definition ResourceV2.h:147
const Aws::String & GetAccountId() const
Definition ResourceV2.h:73
ResourceV2 & WithRegion(RegionT &&value)
Definition ResourceV2.h:100
void SetAccountId(AccountIdT &&value)
Definition ResourceV2.h:76
void SetName(NameT &&value)
Definition ResourceV2.h:64
AWS_GUARDDUTY_API ResourceV2(Aws::Utils::Json::JsonView jsonValue)
ResourceV2 & WithData(DataT &&value)
Definition ResourceV2.h:152
const Aws::String & GetRegion() const
Definition ResourceV2.h:95
ResourceV2 & AddTags(TagsT &&value)
Definition ResourceV2.h:139
void SetService(ServiceT &&value)
Definition ResourceV2.h:110
AWS_GUARDDUTY_API ResourceV2()=default
void SetRegion(RegionT &&value)
Definition ResourceV2.h:98
void SetResourceType(FindingResourceType value)
Definition ResourceV2.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue