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/ResourceDetails.h>
11#include <aws/inspector2/model/ResourceType.h>
45 m_typeHasBeenSet =
true;
60 template <
typename IdT = Aws::String>
62 m_idHasBeenSet =
true;
63 m_id = std::forward<IdT>(value);
65 template <
typename IdT = Aws::String>
67 SetId(std::forward<IdT>(value));
78 template <
typename PartitionT = Aws::String>
80 m_partitionHasBeenSet =
true;
81 m_partition = std::forward<PartitionT>(value);
83 template <
typename PartitionT = Aws::String>
96 template <
typename RegionT = Aws::String>
98 m_regionHasBeenSet =
true;
99 m_region = std::forward<RegionT>(value);
101 template <
typename RegionT = Aws::String>
114 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 m_tagsHasBeenSet =
true;
117 m_tags = std::forward<TagsT>(value);
119 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 SetTags(std::forward<TagsT>(value));
124 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
126 m_tagsHasBeenSet =
true;
127 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 template <
typename DetailsT = ResourceDetails>
140 m_detailsHasBeenSet =
true;
141 m_details = std::forward<DetailsT>(value);
143 template <
typename DetailsT = ResourceDetails>
160 ResourceDetails m_details;
161 bool m_typeHasBeenSet =
false;
162 bool m_idHasBeenSet =
false;
163 bool m_partitionHasBeenSet =
false;
164 bool m_regionHasBeenSet =
false;
165 bool m_tagsHasBeenSet =
false;
166 bool m_detailsHasBeenSet =
false;
AWS_INSPECTOR2_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool PartitionHasBeenSet() const
Resource & WithDetails(DetailsT &&value)
void SetDetails(DetailsT &&value)
Resource & WithType(ResourceType value)
Resource & WithRegion(RegionT &&value)
const ResourceDetails & GetDetails() const
const Aws::String & GetPartition() const
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
Resource & WithTags(TagsT &&value)
bool TagsHasBeenSet() const
Resource & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_INSPECTOR2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(TagsT &&value)
bool RegionHasBeenSet() const
Resource & WithPartition(PartitionT &&value)
bool TypeHasBeenSet() const
Resource & WithId(IdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
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