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>
63 inline void SetId(
Aws::String&& value) { m_idHasBeenSet =
true; m_id = std::move(value); }
64 inline void SetId(
const char* value) { m_idHasBeenSet =
true; m_id.assign(value); }
78 inline void SetPartition(
const char* value) { m_partitionHasBeenSet =
true; m_partition.assign(value); }
92 inline void SetRegion(
const char* value) { m_regionHasBeenSet =
true; m_region.assign(value); }
112 inline Resource&
AddTags(
const char* key,
Aws::String&& value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, std::move(value));
return *
this; }
113 inline Resource&
AddTags(
Aws::String&& key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(std::move(key), value);
return *
this; }
114 inline Resource&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
131 bool m_detailsHasBeenSet =
false;
134 bool m_idHasBeenSet =
false;
137 bool m_partitionHasBeenSet =
false;
140 bool m_regionHasBeenSet =
false;
143 bool m_tagsHasBeenSet =
false;
146 bool m_typeHasBeenSet =
false;
Resource & WithId(const char *value)
Resource & AddTags(Aws::String &&key, Aws::String &&value)
Resource & WithPartition(Aws::String &&value)
AWS_INSPECTOR2_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool PartitionHasBeenSet() const
void SetRegion(const Aws::String &value)
Resource & WithRegion(const char *value)
void SetPartition(const Aws::String &value)
Resource & WithDetails(ResourceDetails &&value)
Resource & WithPartition(const Aws::String &value)
const ResourceDetails & GetDetails() const
const Aws::String & GetPartition() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const ResourceType & GetType() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
bool IdHasBeenSet() const
const Aws::String & GetRegion() const
Resource & AddTags(const char *key, Aws::String &&value)
Resource & WithRegion(const Aws::String &value)
void SetDetails(const ResourceDetails &value)
void SetDetails(ResourceDetails &&value)
Resource & AddTags(Aws::String &&key, const Aws::String &value)
void SetId(const char *value)
bool DetailsHasBeenSet() const
AWS_INSPECTOR2_API Resource()
bool TagsHasBeenSet() const
Resource & AddTags(Aws::String &&key, const char *value)
Resource & WithId(Aws::String &&value)
void SetPartition(Aws::String &&value)
Resource & WithPartition(const char *value)
Resource & WithId(const Aws::String &value)
Resource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_INSPECTOR2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & AddTags(const char *key, const char *value)
bool RegionHasBeenSet() const
Resource & AddTags(const Aws::String &key, const Aws::String &value)
bool TypeHasBeenSet() const
Resource & AddTags(const Aws::String &key, Aws::String &&value)
void SetRegion(Aws::String &&value)
void SetId(const Aws::String &value)
Resource & WithRegion(Aws::String &&value)
void SetRegion(const char *value)
void SetType(ResourceType &&value)
Resource & WithType(const ResourceType &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Resource & WithType(ResourceType &&value)
void SetPartition(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
void SetType(const ResourceType &value)
Resource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Resource & WithDetails(const ResourceDetails &value)
void SetId(Aws::String &&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