7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/Provider.h>
11#include <aws/inspector2/model/ResourceDetails.h>
12#include <aws/inspector2/model/ResourceType.h>
46 m_typeHasBeenSet =
true;
61 template <
typename IdT = Aws::String>
63 m_idHasBeenSet =
true;
64 m_id = std::forward<IdT>(value);
66 template <
typename IdT = Aws::String>
68 SetId(std::forward<IdT>(value));
79 template <
typename PartitionT = Aws::String>
81 m_partitionHasBeenSet =
true;
82 m_partition = std::forward<PartitionT>(value);
84 template <
typename PartitionT = Aws::String>
97 template <
typename RegionT = Aws::String>
99 m_regionHasBeenSet =
true;
100 m_region = std::forward<RegionT>(value);
102 template <
typename RegionT = Aws::String>
115 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 m_tagsHasBeenSet =
true;
118 m_tags = std::forward<TagsT>(value);
120 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 SetTags(std::forward<TagsT>(value));
125 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
127 m_tagsHasBeenSet =
true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
139 template <
typename DetailsT = ResourceDetails>
141 m_detailsHasBeenSet =
true;
142 m_details = std::forward<DetailsT>(value);
144 template <
typename DetailsT = ResourceDetails>
158 m_providerHasBeenSet =
true;
173 template <
typename Prov
iderAccountIdT = Aws::String>
175 m_providerAccountIdHasBeenSet =
true;
176 m_providerAccountId = std::forward<ProviderAccountIdT>(value);
178 template <
typename Prov
iderAccountIdT = Aws::String>
191 template <
typename Prov
iderOrgIdT = Aws::String>
193 m_providerOrgIdHasBeenSet =
true;
194 m_providerOrgId = std::forward<ProviderOrgIdT>(value);
196 template <
typename Prov
iderOrgIdT = Aws::String>
213 ResourceDetails m_details;
220 bool m_typeHasBeenSet =
false;
221 bool m_idHasBeenSet =
false;
222 bool m_partitionHasBeenSet =
false;
223 bool m_regionHasBeenSet =
false;
224 bool m_tagsHasBeenSet =
false;
225 bool m_detailsHasBeenSet =
false;
226 bool m_providerHasBeenSet =
false;
227 bool m_providerAccountIdHasBeenSet =
false;
228 bool m_providerOrgIdHasBeenSet =
false;
AWS_INSPECTOR2_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool PartitionHasBeenSet() const
void SetProviderAccountId(ProviderAccountIdT &&value)
Resource & WithProviderOrgId(ProviderOrgIdT &&value)
Resource & WithDetails(DetailsT &&value)
void SetDetails(DetailsT &&value)
Resource & WithType(ResourceType value)
Resource & WithRegion(RegionT &&value)
const ResourceDetails & GetDetails() const
Resource & WithProvider(Provider value)
const Aws::String & GetPartition() const
bool ProviderHasBeenSet() const
void SetProviderOrgId(ProviderOrgIdT &&value)
void SetRegion(RegionT &&value)
AWS_INSPECTOR2_API Resource()=default
bool IdHasBeenSet() const
const Aws::String & GetRegion() const
ResourceType GetType() const
void SetType(ResourceType value)
void SetPartition(PartitionT &&value)
bool DetailsHasBeenSet() const
const Aws::String & GetProviderOrgId() const
Resource & WithTags(TagsT &&value)
bool TagsHasBeenSet() const
Resource & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool ProviderAccountIdHasBeenSet() const
AWS_INSPECTOR2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(TagsT &&value)
bool RegionHasBeenSet() const
Resource & WithPartition(PartitionT &&value)
const Aws::String & GetProviderAccountId() const
bool TypeHasBeenSet() const
Resource & WithId(IdT &&value)
Provider GetProvider() const
bool ProviderOrgIdHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetProvider(Provider value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Resource & WithProviderAccountId(ProviderAccountIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue