7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/ResourceDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/inspector2/model/ResourceType.h>
50 template<
typename DetailsT = ResourceDetails>
51 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet =
true; m_details = std::forward<DetailsT>(value); }
52 template<
typename DetailsT = ResourceDetails>
62 template<
typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
64 template<
typename IdT = Aws::String>
74 template<
typename PartitionT = Aws::String>
75 void SetPartition(PartitionT&& value) { m_partitionHasBeenSet =
true; m_partition = std::forward<PartitionT>(value); }
76 template<
typename PartitionT = Aws::String>
86 template<
typename RegionT = Aws::String>
87 void SetRegion(RegionT&& value) { m_regionHasBeenSet =
true; m_region = std::forward<RegionT>(value); }
88 template<
typename RegionT = Aws::String>
98 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
100 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
104 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
120 bool m_detailsHasBeenSet =
false;
123 bool m_idHasBeenSet =
false;
126 bool m_partitionHasBeenSet =
false;
129 bool m_regionHasBeenSet =
false;
132 bool m_tagsHasBeenSet =
false;
135 bool m_typeHasBeenSet =
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