AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceShare.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/ResourceShareStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ram/model/ResourceShareFeatureSet.h>
13#include <aws/ram/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace RAM
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_RAM_API ResourceShare();
43
44
46
51 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
52 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
53 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
54 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
55 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
56 inline ResourceShare& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
57 inline ResourceShare& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
58 inline ResourceShare& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline ResourceShare& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline ResourceShare& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline ResourceShare& WithName(const char* value) { SetName(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 ResourceShare& WithOwningAccountId(const Aws::String& value) { SetOwningAccountId(value); return *this;}
85 inline ResourceShare& WithOwningAccountId(Aws::String&& value) { SetOwningAccountId(std::move(value)); return *this;}
86 inline ResourceShare& WithOwningAccountId(const char* value) { SetOwningAccountId(value); return *this;}
88
90
98 inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
99 inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
100 inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
101 inline ResourceShare& WithAllowExternalPrincipals(bool value) { SetAllowExternalPrincipals(value); return *this;}
103
105
108 inline const ResourceShareStatus& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const ResourceShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(ResourceShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 inline ResourceShare& WithStatus(const ResourceShareStatus& value) { SetStatus(value); return *this;}
113 inline ResourceShare& WithStatus(ResourceShareStatus&& value) { SetStatus(std::move(value)); return *this;}
115
117
120 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
121 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
122 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
123 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
124 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
125 inline ResourceShare& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
126 inline ResourceShare& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
127 inline ResourceShare& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
129
131
134 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline ResourceShare& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
139 inline ResourceShare& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
140 inline ResourceShare& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
141 inline ResourceShare& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
149 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
150 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
151 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
152 inline ResourceShare& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
153 inline ResourceShare& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
161 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
162 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
163 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
164 inline ResourceShare& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
165 inline ResourceShare& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
167
169
189 inline const ResourceShareFeatureSet& GetFeatureSet() const{ return m_featureSet; }
190 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
191 inline void SetFeatureSet(const ResourceShareFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
192 inline void SetFeatureSet(ResourceShareFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
193 inline ResourceShare& WithFeatureSet(const ResourceShareFeatureSet& value) { SetFeatureSet(value); return *this;}
194 inline ResourceShare& WithFeatureSet(ResourceShareFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
196 private:
197
198 Aws::String m_resourceShareArn;
199 bool m_resourceShareArnHasBeenSet = false;
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_owningAccountId;
205 bool m_owningAccountIdHasBeenSet = false;
206
207 bool m_allowExternalPrincipals;
208 bool m_allowExternalPrincipalsHasBeenSet = false;
209
210 ResourceShareStatus m_status;
211 bool m_statusHasBeenSet = false;
212
213 Aws::String m_statusMessage;
214 bool m_statusMessageHasBeenSet = false;
215
216 Aws::Vector<Tag> m_tags;
217 bool m_tagsHasBeenSet = false;
218
219 Aws::Utils::DateTime m_creationTime;
220 bool m_creationTimeHasBeenSet = false;
221
222 Aws::Utils::DateTime m_lastUpdatedTime;
223 bool m_lastUpdatedTimeHasBeenSet = false;
224
225 ResourceShareFeatureSet m_featureSet;
226 bool m_featureSetHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace RAM
231} // namespace Aws
void SetName(const Aws::String &value)
ResourceShare & WithStatusMessage(const Aws::String &value)
ResourceShare & WithOwningAccountId(Aws::String &&value)
const Aws::String & GetOwningAccountId() const
void SetResourceShareArn(const char *value)
ResourceShare & WithAllowExternalPrincipals(bool value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ResourceShare & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceShare & WithResourceShareArn(const char *value)
const Aws::String & GetResourceShareArn() const
ResourceShare & AddTags(Tag &&value)
ResourceShare & WithName(Aws::String &&value)
AWS_RAM_API ResourceShare(Aws::Utils::Json::JsonView jsonValue)
void SetOwningAccountId(Aws::String &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetResourceShareArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
bool AllowExternalPrincipalsHasBeenSet() const
ResourceShare & AddTags(const Tag &value)
ResourceShare & WithFeatureSet(ResourceShareFeatureSet &&value)
ResourceShare & WithStatus(ResourceShareStatus &&value)
void SetOwningAccountId(const char *value)
ResourceShare & WithCreationTime(Aws::Utils::DateTime &&value)
void SetFeatureSet(ResourceShareFeatureSet &&value)
AWS_RAM_API ResourceShare & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceShare & WithCreationTime(const Aws::Utils::DateTime &value)
ResourceShare & WithName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
void SetName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetName(Aws::String &&value)
ResourceShare & WithName(const Aws::String &value)
const ResourceShareStatus & GetStatus() const
const Aws::String & GetStatusMessage() const
void SetStatusMessage(const Aws::String &value)
ResourceShare & WithStatusMessage(Aws::String &&value)
void SetResourceShareArn(Aws::String &&value)
void SetStatus(ResourceShareStatus &&value)
void SetStatusMessage(const char *value)
ResourceShare & WithFeatureSet(const ResourceShareFeatureSet &value)
ResourceShare & WithResourceShareArn(const Aws::String &value)
ResourceShare & WithOwningAccountId(const Aws::String &value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShare & WithOwningAccountId(const char *value)
ResourceShare & WithStatusMessage(const char *value)
const Aws::String & GetName() const
void SetAllowExternalPrincipals(bool value)
void SetFeatureSet(const ResourceShareFeatureSet &value)
const ResourceShareFeatureSet & GetFeatureSet() const
const Aws::Vector< Tag > & GetTags() const
void SetStatus(const ResourceShareStatus &value)
ResourceShare & WithTags(const Aws::Vector< Tag > &value)
ResourceShare & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourceShare & WithStatus(const ResourceShareStatus &value)
ResourceShare & WithTags(Aws::Vector< Tag > &&value)
ResourceShare & WithResourceShareArn(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetOwningAccountId(const Aws::String &value)
void SetStatusMessage(Aws::String &&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