7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
11#include <aws/resource-explorer-2/model/ResourceProperty.h>
22namespace ResourceExplorer2 {
35 AWS_RESOURCEEXPLORER2_API
Resource() =
default;
48 template <
typename ArnT = Aws::String>
50 m_arnHasBeenSet =
true;
51 m_arn = std::forward<ArnT>(value);
53 template <
typename ArnT = Aws::String>
55 SetArn(std::forward<ArnT>(value));
66 template <
typename OwningAccountIdT = Aws::String>
68 m_owningAccountIdHasBeenSet =
true;
69 m_owningAccountId = std::forward<OwningAccountIdT>(value);
71 template <
typename OwningAccountIdT = Aws::String>
85 template <
typename RegionT = Aws::String>
87 m_regionHasBeenSet =
true;
88 m_region = std::forward<RegionT>(value);
90 template <
typename RegionT = Aws::String>
103 template <
typename ResourceTypeT = Aws::String>
105 m_resourceTypeHasBeenSet =
true;
106 m_resourceType = std::forward<ResourceTypeT>(value);
108 template <
typename ResourceTypeT = Aws::String>
122 template <
typename ServiceT = Aws::String>
124 m_serviceHasBeenSet =
true;
125 m_service = std::forward<ServiceT>(value);
127 template <
typename ServiceT = Aws::String>
141 template <
typename CfnResourceTypeT = Aws::String>
143 m_cfnResourceTypeHasBeenSet =
true;
144 m_cfnResourceType = std::forward<CfnResourceTypeT>(value);
146 template <
typename CfnResourceTypeT = Aws::String>
160 template <
typename LastReportedAtT = Aws::Utils::DateTime>
162 m_lastReportedAtHasBeenSet =
true;
163 m_lastReportedAt = std::forward<LastReportedAtT>(value);
165 template <
typename LastReportedAtT = Aws::Utils::DateTime>
180 template <
typename PropertiesT = Aws::Vector<ResourceProperty>>
182 m_propertiesHasBeenSet =
true;
183 m_properties = std::forward<PropertiesT>(value);
185 template <
typename PropertiesT = Aws::Vector<ResourceProperty>>
190 template <
typename PropertiesT = ResourceProperty>
192 m_propertiesHasBeenSet =
true;
193 m_properties.emplace_back(std::forward<PropertiesT>(value));
213 bool m_arnHasBeenSet =
false;
214 bool m_owningAccountIdHasBeenSet =
false;
215 bool m_regionHasBeenSet =
false;
216 bool m_resourceTypeHasBeenSet =
false;
217 bool m_serviceHasBeenSet =
false;
218 bool m_cfnResourceTypeHasBeenSet =
false;
219 bool m_lastReportedAtHasBeenSet =
false;
220 bool m_propertiesHasBeenSet =
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)
void SetCfnResourceType(CfnResourceTypeT &&value)
bool ServiceHasBeenSet() const
void SetService(ServiceT &&value)
bool RegionHasBeenSet() const
void SetResourceType(ResourceTypeT &&value)
const Aws::Vector< ResourceProperty > & GetProperties() const
const Aws::String & GetCfnResourceType() const
void SetOwningAccountId(OwningAccountIdT &&value)
bool LastReportedAtHasBeenSet() const
Resource & AddProperties(PropertiesT &&value)
const Aws::String & GetService() const
Resource & WithCfnResourceType(CfnResourceTypeT &&value)
bool CfnResourceTypeHasBeenSet() 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