7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-explorer-2/model/ResourceProperty.h>
24namespace ResourceExplorer2
40 AWS_RESOURCEEXPLORER2_API
Resource() =
default;
54 template<
typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
56 template<
typename ArnT = Aws::String>
67 template<
typename LastReportedAtT = Aws::Utils::DateTime>
68 void SetLastReportedAt(LastReportedAtT&& value) { m_lastReportedAtHasBeenSet =
true; m_lastReportedAt = std::forward<LastReportedAtT>(value); }
69 template<
typename LastReportedAtT = Aws::Utils::DateTime>
79 template<
typename OwningAccountIdT = Aws::String>
80 void SetOwningAccountId(OwningAccountIdT&& value) { m_owningAccountIdHasBeenSet =
true; m_owningAccountId = std::forward<OwningAccountIdT>(value); }
81 template<
typename OwningAccountIdT = Aws::String>
93 template<
typename PropertiesT = Aws::Vector<ResourceProperty>>
94 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet =
true; m_properties = std::forward<PropertiesT>(value); }
95 template<
typename PropertiesT = Aws::Vector<ResourceProperty>>
97 template<
typename PropertiesT = ResourceProperty>
98 Resource&
AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet =
true; m_properties.emplace_back(std::forward<PropertiesT>(value));
return *
this; }
108 template<
typename RegionT = Aws::String>
109 void SetRegion(RegionT&& value) { m_regionHasBeenSet =
true; m_region = std::forward<RegionT>(value); }
110 template<
typename RegionT = Aws::String>
120 template<
typename ResourceTypeT = Aws::String>
121 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet =
true; m_resourceType = std::forward<ResourceTypeT>(value); }
122 template<
typename ResourceTypeT = Aws::String>
133 template<
typename ServiceT = Aws::String>
134 void SetService(ServiceT&& value) { m_serviceHasBeenSet =
true; m_service = std::forward<ServiceT>(value); }
135 template<
typename ServiceT = Aws::String>
141 bool m_arnHasBeenSet =
false;
144 bool m_lastReportedAtHasBeenSet =
false;
147 bool m_owningAccountIdHasBeenSet =
false;
150 bool m_propertiesHasBeenSet =
false;
153 bool m_regionHasBeenSet =
false;
156 bool m_resourceTypeHasBeenSet =
false;
159 bool m_serviceHasBeenSet =
false;
const Aws::String & GetOwningAccountId() const
void SetProperties(PropertiesT &&value)
Resource & WithProperties(PropertiesT &&value)
AWS_RESOURCEEXPLORER2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithOwningAccountId(OwningAccountIdT &&value)
bool ArnHasBeenSet() const
AWS_RESOURCEEXPLORER2_API Resource()=default
Resource & WithResourceType(ResourceTypeT &&value)
Resource & WithArn(ArnT &&value)
bool ResourceTypeHasBeenSet() const
Resource & WithRegion(RegionT &&value)
AWS_RESOURCEEXPLORER2_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool PropertiesHasBeenSet() const
const Aws::Utils::DateTime & GetLastReportedAt() const
void SetLastReportedAt(LastReportedAtT &&value)
const Aws::String & GetRegion() const
Resource & WithService(ServiceT &&value)
bool ServiceHasBeenSet() const
void SetService(ServiceT &&value)
bool RegionHasBeenSet() const
void SetResourceType(ResourceTypeT &&value)
const Aws::Vector< ResourceProperty > & GetProperties() const
void SetOwningAccountId(OwningAccountIdT &&value)
bool LastReportedAtHasBeenSet() const
Resource & AddProperties(PropertiesT &&value)
const Aws::String & GetService() const
void SetRegion(RegionT &&value)
bool OwningAccountIdHasBeenSet() const
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(ArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetResourceType() const
Resource & WithLastReportedAt(LastReportedAtT &&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