AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline Resource& WithArn(const char* value) { SetArn(value); return *this;}
61
63
67 inline const Aws::Utils::DateTime& GetLastReportedAt() const{ return m_lastReportedAt; }
68 inline bool LastReportedAtHasBeenSet() const { return m_lastReportedAtHasBeenSet; }
69 inline void SetLastReportedAt(const Aws::Utils::DateTime& value) { m_lastReportedAtHasBeenSet = true; m_lastReportedAt = value; }
70 inline void SetLastReportedAt(Aws::Utils::DateTime&& value) { m_lastReportedAtHasBeenSet = true; m_lastReportedAt = std::move(value); }
71 inline Resource& WithLastReportedAt(const Aws::Utils::DateTime& value) { SetLastReportedAt(value); return *this;}
72 inline Resource& WithLastReportedAt(Aws::Utils::DateTime&& value) { SetLastReportedAt(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetOwningAccountId() const{ return m_owningAccountId; }
80 inline bool OwningAccountIdHasBeenSet() const { return m_owningAccountIdHasBeenSet; }
81 inline void SetOwningAccountId(const Aws::String& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = value; }
82 inline void SetOwningAccountId(Aws::String&& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = std::move(value); }
83 inline void SetOwningAccountId(const char* value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId.assign(value); }
84 inline Resource& WithOwningAccountId(const Aws::String& value) { SetOwningAccountId(value); return *this;}
85 inline Resource& WithOwningAccountId(Aws::String&& value) { SetOwningAccountId(std::move(value)); return *this;}
86 inline Resource& WithOwningAccountId(const char* value) { SetOwningAccountId(value); return *this;}
88
90
95 inline const Aws::Vector<ResourceProperty>& GetProperties() const{ return m_properties; }
96 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
97 inline void SetProperties(const Aws::Vector<ResourceProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
98 inline void SetProperties(Aws::Vector<ResourceProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
99 inline Resource& WithProperties(const Aws::Vector<ResourceProperty>& value) { SetProperties(value); return *this;}
100 inline Resource& WithProperties(Aws::Vector<ResourceProperty>&& value) { SetProperties(std::move(value)); return *this;}
101 inline Resource& AddProperties(const ResourceProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
102 inline Resource& AddProperties(ResourceProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
104
106
110 inline const Aws::String& GetRegion() const{ return m_region; }
111 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
112 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
113 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
114 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
115 inline Resource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
116 inline Resource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
117 inline Resource& WithRegion(const char* value) { SetRegion(value); return *this;}
119
121
124 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
125 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
126 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
127 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
128 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
129 inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
130 inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
131 inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
133
135
139 inline const Aws::String& GetService() const{ return m_service; }
140 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
141 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
142 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
143 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
144 inline Resource& WithService(const Aws::String& value) { SetService(value); return *this;}
145 inline Resource& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
146 inline Resource& WithService(const char* value) { SetService(value); return *this;}
148 private:
149
150 Aws::String m_arn;
151 bool m_arnHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastReportedAt;
154 bool m_lastReportedAtHasBeenSet = false;
155
156 Aws::String m_owningAccountId;
157 bool m_owningAccountIdHasBeenSet = false;
158
160 bool m_propertiesHasBeenSet = false;
161
162 Aws::String m_region;
163 bool m_regionHasBeenSet = false;
164
165 Aws::String m_resourceType;
166 bool m_resourceTypeHasBeenSet = false;
167
168 Aws::String m_service;
169 bool m_serviceHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace ResourceExplorer2
174} // namespace Aws
const Aws::String & GetOwningAccountId() const
Definition Resource.h:79
void SetLastReportedAt(Aws::Utils::DateTime &&value)
Definition Resource.h:70
AWS_RESOURCEEXPLORER2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(Aws::String &&value)
Definition Resource.h:55
Resource & WithProperties(Aws::Vector< ResourceProperty > &&value)
Definition Resource.h:100
Resource & WithRegion(Aws::String &&value)
Definition Resource.h:116
Resource & WithOwningAccountId(Aws::String &&value)
Definition Resource.h:85
Resource & WithProperties(const Aws::Vector< ResourceProperty > &value)
Definition Resource.h:99
AWS_RESOURCEEXPLORER2_API Resource()
Resource & WithService(const Aws::String &value)
Definition Resource.h:144
void SetArn(const Aws::String &value)
Definition Resource.h:54
void SetOwningAccountId(Aws::String &&value)
Definition Resource.h:82
Resource & WithArn(const Aws::String &value)
Definition Resource.h:57
Resource & WithService(const char *value)
Definition Resource.h:146
AWS_RESOURCEEXPLORER2_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithRegion(const char *value)
Definition Resource.h:117
const Aws::Utils::DateTime & GetLastReportedAt() const
Definition Resource.h:67
void SetService(Aws::String &&value)
Definition Resource.h:142
Resource & AddProperties(ResourceProperty &&value)
Definition Resource.h:102
const Aws::String & GetRegion() const
Definition Resource.h:110
Resource & AddProperties(const ResourceProperty &value)
Definition Resource.h:101
void SetRegion(const char *value)
Definition Resource.h:114
Resource & WithService(Aws::String &&value)
Definition Resource.h:145
void SetLastReportedAt(const Aws::Utils::DateTime &value)
Definition Resource.h:69
void SetResourceType(const Aws::String &value)
Definition Resource.h:126
Resource & WithRegion(const Aws::String &value)
Definition Resource.h:115
Resource & WithOwningAccountId(const Aws::String &value)
Definition Resource.h:84
Resource & WithLastReportedAt(Aws::Utils::DateTime &&value)
Definition Resource.h:72
void SetService(const char *value)
Definition Resource.h:143
void SetResourceType(const char *value)
Definition Resource.h:128
const Aws::Vector< ResourceProperty > & GetProperties() const
Definition Resource.h:95
Resource & WithResourceType(const char *value)
Definition Resource.h:131
Resource & WithOwningAccountId(const char *value)
Definition Resource.h:86
Resource & WithArn(Aws::String &&value)
Definition Resource.h:58
Resource & WithResourceType(Aws::String &&value)
Definition Resource.h:130
const Aws::String & GetService() const
Definition Resource.h:139
void SetProperties(Aws::Vector< ResourceProperty > &&value)
Definition Resource.h:98
void SetRegion(const Aws::String &value)
Definition Resource.h:112
void SetProperties(const Aws::Vector< ResourceProperty > &value)
Definition Resource.h:97
void SetRegion(Aws::String &&value)
Definition Resource.h:113
void SetArn(const char *value)
Definition Resource.h:56
Resource & WithResourceType(const Aws::String &value)
Definition Resource.h:129
Resource & WithLastReportedAt(const Aws::Utils::DateTime &value)
Definition Resource.h:71
Resource & WithArn(const char *value)
Definition Resource.h:59
void SetOwningAccountId(const char *value)
Definition Resource.h:83
void SetOwningAccountId(const Aws::String &value)
Definition Resource.h:81
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:124
void SetService(const Aws::String &value)
Definition Resource.h:141
void SetResourceType(Aws::String &&value)
Definition Resource.h:127
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue