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>
51 template<
typename U
idT = Aws::String>
52 void SetUid(UidT&& value) { m_uidHasBeenSet =
true; m_uid = std::forward<UidT>(value); }
53 template<
typename U
idT = Aws::String>
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>
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>
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>
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>
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>
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>>
138 template<
typename TagsT = Tag>
139 ResourceV2&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
149 template<
typename DataT = ResourceData>
150 void SetData(DataT&& value) { m_dataHasBeenSet =
true; m_data = std::forward<DataT>(value); }
151 template<
typename DataT = ResourceData>
157 bool m_uidHasBeenSet =
false;
160 bool m_nameHasBeenSet =
false;
163 bool m_accountIdHasBeenSet =
false;
166 bool m_resourceTypeHasBeenSet =
false;
169 bool m_regionHasBeenSet =
false;
172 bool m_serviceHasBeenSet =
false;
175 bool m_cloudPartitionHasBeenSet =
false;
178 bool m_tagsHasBeenSet =
false;
181 bool m_dataHasBeenSet =
false;
ResourceV2 & WithName(NameT &&value)
ResourceV2 & WithTags(TagsT &&value)
const Aws::String & GetUid() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceV2 & WithAccountId(AccountIdT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_GUARDDUTY_API ResourceV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceV2 & WithResourceType(FindingResourceType value)
void SetTags(TagsT &&value)
void SetCloudPartition(CloudPartitionT &&value)
const Aws::String & GetName() const
const Aws::String & GetCloudPartition() const
bool TagsHasBeenSet() const
bool ResourceTypeHasBeenSet() const
ResourceV2 & WithUid(UidT &&value)
void SetUid(UidT &&value)
bool AccountIdHasBeenSet() const
const Aws::String & GetService() const
bool RegionHasBeenSet() const
ResourceV2 & WithService(ServiceT &&value)
FindingResourceType GetResourceType() const
ResourceV2 & WithCloudPartition(CloudPartitionT &&value)
const ResourceData & GetData() const
const Aws::String & GetAccountId() const
ResourceV2 & WithRegion(RegionT &&value)
void SetData(DataT &&value)
void SetAccountId(AccountIdT &&value)
void SetName(NameT &&value)
bool UidHasBeenSet() const
AWS_GUARDDUTY_API ResourceV2(Aws::Utils::Json::JsonView jsonValue)
ResourceV2 & WithData(DataT &&value)
bool CloudPartitionHasBeenSet() const
const Aws::String & GetRegion() const
ResourceV2 & AddTags(TagsT &&value)
bool ServiceHasBeenSet() const
void SetService(ServiceT &&value)
bool DataHasBeenSet() const
bool NameHasBeenSet() const
AWS_GUARDDUTY_API ResourceV2()=default
void SetRegion(RegionT &&value)
void SetResourceType(FindingResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue