AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResourceExplorer2
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_RESOURCEEXPLORER2_API Resource() = default;
41 AWS_RESOURCEEXPLORER2_API Resource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESOURCEEXPLORER2_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
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>
57 Resource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
65 inline const Aws::Utils::DateTime& GetLastReportedAt() const { return m_lastReportedAt; }
66 inline bool LastReportedAtHasBeenSet() const { return m_lastReportedAtHasBeenSet; }
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>
70 Resource& WithLastReportedAt(LastReportedAtT&& value) { SetLastReportedAt(std::forward<LastReportedAtT>(value)); return *this;}
72
74
77 inline const Aws::String& GetOwningAccountId() const { return m_owningAccountId; }
78 inline bool OwningAccountIdHasBeenSet() const { return m_owningAccountIdHasBeenSet; }
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>
82 Resource& WithOwningAccountId(OwningAccountIdT&& value) { SetOwningAccountId(std::forward<OwningAccountIdT>(value)); return *this;}
84
86
91 inline const Aws::Vector<ResourceProperty>& GetProperties() const { return m_properties; }
92 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
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>>
96 Resource& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
97 template<typename PropertiesT = ResourceProperty>
98 Resource& AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties.emplace_back(std::forward<PropertiesT>(value)); return *this; }
100
102
106 inline const Aws::String& GetRegion() const { return m_region; }
107 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
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>
111 Resource& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
113
115
118 inline const Aws::String& GetResourceType() const { return m_resourceType; }
119 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
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>
123 Resource& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
125
127
131 inline const Aws::String& GetService() const { return m_service; }
132 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
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>
136 Resource& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
138 private:
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastReportedAt{};
144 bool m_lastReportedAtHasBeenSet = false;
145
146 Aws::String m_owningAccountId;
147 bool m_owningAccountIdHasBeenSet = false;
148
150 bool m_propertiesHasBeenSet = false;
151
152 Aws::String m_region;
153 bool m_regionHasBeenSet = false;
154
155 Aws::String m_resourceType;
156 bool m_resourceTypeHasBeenSet = false;
157
158 Aws::String m_service;
159 bool m_serviceHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace ResourceExplorer2
164} // namespace Aws
const Aws::String & GetOwningAccountId() const
Definition Resource.h:77
void SetProperties(PropertiesT &&value)
Definition Resource.h:94
Resource & WithProperties(PropertiesT &&value)
Definition Resource.h:96
AWS_RESOURCEEXPLORER2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithOwningAccountId(OwningAccountIdT &&value)
Definition Resource.h:82
AWS_RESOURCEEXPLORER2_API Resource()=default
Resource & WithResourceType(ResourceTypeT &&value)
Definition Resource.h:123
Resource & WithArn(ArnT &&value)
Definition Resource.h:57
Resource & WithRegion(RegionT &&value)
Definition Resource.h:111
AWS_RESOURCEEXPLORER2_API Resource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastReportedAt() const
Definition Resource.h:65
void SetLastReportedAt(LastReportedAtT &&value)
Definition Resource.h:68
const Aws::String & GetRegion() const
Definition Resource.h:106
Resource & WithService(ServiceT &&value)
Definition Resource.h:136
void SetService(ServiceT &&value)
Definition Resource.h:134
void SetResourceType(ResourceTypeT &&value)
Definition Resource.h:121
const Aws::Vector< ResourceProperty > & GetProperties() const
Definition Resource.h:91
void SetOwningAccountId(OwningAccountIdT &&value)
Definition Resource.h:80
Resource & AddProperties(PropertiesT &&value)
Definition Resource.h:98
const Aws::String & GetService() const
Definition Resource.h:131
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
Definition Resource.h:52
const Aws::String & GetResourceType() const
Definition Resource.h:118
Resource & WithLastReportedAt(LastReportedAtT &&value)
Definition Resource.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue