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/ram/RAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ram/model/ResourceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ram/model/ResourceRegionScope.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 RAM
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RAM_API Resource();
39 AWS_RAM_API Resource(Aws::Utils::Json::JsonView jsonValue);
42
43
45
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Resource& WithArn(const char* value) { SetArn(value); return *this;}
59
61
67 inline const Aws::String& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
72 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
73 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
74 inline Resource& WithType(const char* value) { SetType(value); return *this;}
76
78
84 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
85 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
86 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
87 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
88 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
89 inline Resource& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
90 inline Resource& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
91 inline Resource& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
93
95
101 inline const Aws::String& GetResourceGroupArn() const{ return m_resourceGroupArn; }
102 inline bool ResourceGroupArnHasBeenSet() const { return m_resourceGroupArnHasBeenSet; }
103 inline void SetResourceGroupArn(const Aws::String& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = value; }
104 inline void SetResourceGroupArn(Aws::String&& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = std::move(value); }
105 inline void SetResourceGroupArn(const char* value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn.assign(value); }
106 inline Resource& WithResourceGroupArn(const Aws::String& value) { SetResourceGroupArn(value); return *this;}
107 inline Resource& WithResourceGroupArn(Aws::String&& value) { SetResourceGroupArn(std::move(value)); return *this;}
108 inline Resource& WithResourceGroupArn(const char* value) { SetResourceGroupArn(value); return *this;}
110
112
115 inline const ResourceStatus& GetStatus() const{ return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
118 inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 inline Resource& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;}
120 inline Resource& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
128 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
129 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
130 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
131 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
132 inline Resource& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
133 inline Resource& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
134 inline Resource& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
136
138
142 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
143 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
144 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
145 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
146 inline Resource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
147 inline Resource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
149
151
155 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
156 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
157 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
158 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
159 inline Resource& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
160 inline Resource& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
162
164
171 inline const ResourceRegionScope& GetResourceRegionScope() const{ return m_resourceRegionScope; }
172 inline bool ResourceRegionScopeHasBeenSet() const { return m_resourceRegionScopeHasBeenSet; }
173 inline void SetResourceRegionScope(const ResourceRegionScope& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = value; }
174 inline void SetResourceRegionScope(ResourceRegionScope&& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = std::move(value); }
175 inline Resource& WithResourceRegionScope(const ResourceRegionScope& value) { SetResourceRegionScope(value); return *this;}
176 inline Resource& WithResourceRegionScope(ResourceRegionScope&& value) { SetResourceRegionScope(std::move(value)); return *this;}
178 private:
179
180 Aws::String m_arn;
181 bool m_arnHasBeenSet = false;
182
183 Aws::String m_type;
184 bool m_typeHasBeenSet = false;
185
186 Aws::String m_resourceShareArn;
187 bool m_resourceShareArnHasBeenSet = false;
188
189 Aws::String m_resourceGroupArn;
190 bool m_resourceGroupArnHasBeenSet = false;
191
192 ResourceStatus m_status;
193 bool m_statusHasBeenSet = false;
194
195 Aws::String m_statusMessage;
196 bool m_statusMessageHasBeenSet = false;
197
198 Aws::Utils::DateTime m_creationTime;
199 bool m_creationTimeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastUpdatedTime;
202 bool m_lastUpdatedTimeHasBeenSet = false;
203
204 ResourceRegionScope m_resourceRegionScope;
205 bool m_resourceRegionScopeHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace RAM
210} // namespace Aws
Resource & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Resource.h:160
bool CreationTimeHasBeenSet() const
Definition Resource.h:143
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Resource.h:144
Resource & WithArn(const Aws::String &value)
Definition Resource.h:55
void SetResourceShareArn(const char *value)
Definition Resource.h:88
void SetResourceRegionScope(const ResourceRegionScope &value)
Definition Resource.h:173
void SetResourceGroupArn(const Aws::String &value)
Definition Resource.h:103
void SetStatus(const ResourceStatus &value)
Definition Resource.h:117
AWS_RAM_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithStatus(ResourceStatus &&value)
Definition Resource.h:120
bool StatusHasBeenSet() const
Definition Resource.h:116
const Aws::String & GetStatusMessage() const
Definition Resource.h:127
const ResourceRegionScope & GetResourceRegionScope() const
Definition Resource.h:171
void SetResourceShareArn(Aws::String &&value)
Definition Resource.h:87
Resource & WithStatus(const ResourceStatus &value)
Definition Resource.h:119
Resource & WithResourceRegionScope(const ResourceRegionScope &value)
Definition Resource.h:175
const Aws::String & GetResourceGroupArn() const
Definition Resource.h:101
Resource & WithResourceGroupArn(const Aws::String &value)
Definition Resource.h:106
void SetArn(const Aws::String &value)
Definition Resource.h:52
Resource & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Resource.h:146
bool LastUpdatedTimeHasBeenSet() const
Definition Resource.h:156
Resource & WithArn(Aws::String &&value)
Definition Resource.h:56
Resource & WithStatusMessage(Aws::String &&value)
Definition Resource.h:133
Resource & WithType(Aws::String &&value)
Definition Resource.h:73
bool StatusMessageHasBeenSet() const
Definition Resource.h:128
const Aws::String & GetResourceShareArn() const
Definition Resource.h:84
const Aws::String & GetType() const
Definition Resource.h:67
bool ArnHasBeenSet() const
Definition Resource.h:51
bool ResourceRegionScopeHasBeenSet() const
Definition Resource.h:172
Resource & WithArn(const char *value)
Definition Resource.h:57
Resource & WithResourceShareArn(const Aws::String &value)
Definition Resource.h:89
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Resource.h:155
bool TypeHasBeenSet() const
Definition Resource.h:68
const ResourceStatus & GetStatus() const
Definition Resource.h:115
void SetResourceGroupArn(const char *value)
Definition Resource.h:105
bool ResourceShareArnHasBeenSet() const
Definition Resource.h:85
void SetResourceShareArn(const Aws::String &value)
Definition Resource.h:86
void SetStatus(ResourceStatus &&value)
Definition Resource.h:118
void SetArn(const char *value)
Definition Resource.h:54
Resource & WithStatusMessage(const Aws::String &value)
Definition Resource.h:132
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Resource.h:158
Resource & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Resource.h:147
Resource & WithStatusMessage(const char *value)
Definition Resource.h:134
Resource & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Resource.h:159
void SetType(Aws::String &&value)
Definition Resource.h:70
const Aws::Utils::DateTime & GetCreationTime() const
Definition Resource.h:142
void SetType(const char *value)
Definition Resource.h:71
void SetResourceGroupArn(Aws::String &&value)
Definition Resource.h:104
Resource & WithResourceGroupArn(const char *value)
Definition Resource.h:108
void SetType(const Aws::String &value)
Definition Resource.h:69
Resource & WithResourceShareArn(const char *value)
Definition Resource.h:91
void SetArn(Aws::String &&value)
Definition Resource.h:53
void SetStatusMessage(const Aws::String &value)
Definition Resource.h:129
bool ResourceGroupArnHasBeenSet() const
Definition Resource.h:102
Resource & WithType(const Aws::String &value)
Definition Resource.h:72
void SetStatusMessage(const char *value)
Definition Resource.h:131
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Resource.h:157
Resource & WithResourceRegionScope(ResourceRegionScope &&value)
Definition Resource.h:176
const Aws::String & GetArn() const
Definition Resource.h:50
void SetStatusMessage(Aws::String &&value)
Definition Resource.h:130
Resource & WithResourceShareArn(Aws::String &&value)
Definition Resource.h:90
Resource & WithType(const char *value)
Definition Resource.h:74
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RAM_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Resource.h:145
Resource & WithResourceGroupArn(Aws::String &&value)
Definition Resource.h:107
void SetResourceRegionScope(ResourceRegionScope &&value)
Definition Resource.h:174
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue