AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceShareAssociation.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/ResourceShareAssociationType.h>
10#include <aws/ram/model/ResourceShareAssociationStatus.h>
11#include <aws/core/utils/DateTime.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:
42
43
45
50 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
51 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
52 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
53 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
54 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
56 inline ResourceShareAssociation& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
57 inline ResourceShareAssociation& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
59
61
64 inline const Aws::String& GetResourceShareName() const{ return m_resourceShareName; }
65 inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; }
66 inline void SetResourceShareName(const Aws::String& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = value; }
67 inline void SetResourceShareName(Aws::String&& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = std::move(value); }
68 inline void SetResourceShareName(const char* value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName.assign(value); }
70 inline ResourceShareAssociation& WithResourceShareName(Aws::String&& value) { SetResourceShareName(std::move(value)); return *this;}
71 inline ResourceShareAssociation& WithResourceShareName(const char* value) { SetResourceShareName(value); return *this;}
73
75
88 inline const Aws::String& GetAssociatedEntity() const{ return m_associatedEntity; }
89 inline bool AssociatedEntityHasBeenSet() const { return m_associatedEntityHasBeenSet; }
90 inline void SetAssociatedEntity(const Aws::String& value) { m_associatedEntityHasBeenSet = true; m_associatedEntity = value; }
91 inline void SetAssociatedEntity(Aws::String&& value) { m_associatedEntityHasBeenSet = true; m_associatedEntity = std::move(value); }
92 inline void SetAssociatedEntity(const char* value) { m_associatedEntityHasBeenSet = true; m_associatedEntity.assign(value); }
94 inline ResourceShareAssociation& WithAssociatedEntity(Aws::String&& value) { SetAssociatedEntity(std::move(value)); return *this;}
95 inline ResourceShareAssociation& WithAssociatedEntity(const char* value) { SetAssociatedEntity(value); return *this;}
97
99
102 inline const ResourceShareAssociationType& GetAssociationType() const{ return m_associationType; }
103 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
104 inline void SetAssociationType(const ResourceShareAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
105 inline void SetAssociationType(ResourceShareAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
109
111
114 inline const ResourceShareAssociationStatus& GetStatus() const{ return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(const ResourceShareAssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
117 inline void SetStatus(ResourceShareAssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 inline ResourceShareAssociation& WithStatus(ResourceShareAssociationStatus&& value) { SetStatus(std::move(value)); return *this;}
121
123
126 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
127 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
128 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
129 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
130 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
131 inline ResourceShareAssociation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
132 inline ResourceShareAssociation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
133 inline ResourceShareAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
141 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
142 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
143 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
145 inline ResourceShareAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
153 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
154 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
155 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
157 inline ResourceShareAssociation& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
159
161
166 inline bool GetExternal() const{ return m_external; }
167 inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; }
168 inline void SetExternal(bool value) { m_externalHasBeenSet = true; m_external = value; }
169 inline ResourceShareAssociation& WithExternal(bool value) { SetExternal(value); return *this;}
171 private:
172
173 Aws::String m_resourceShareArn;
174 bool m_resourceShareArnHasBeenSet = false;
175
176 Aws::String m_resourceShareName;
177 bool m_resourceShareNameHasBeenSet = false;
178
179 Aws::String m_associatedEntity;
180 bool m_associatedEntityHasBeenSet = false;
181
182 ResourceShareAssociationType m_associationType;
183 bool m_associationTypeHasBeenSet = false;
184
186 bool m_statusHasBeenSet = false;
187
188 Aws::String m_statusMessage;
189 bool m_statusMessageHasBeenSet = false;
190
191 Aws::Utils::DateTime m_creationTime;
192 bool m_creationTimeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastUpdatedTime;
195 bool m_lastUpdatedTimeHasBeenSet = false;
196
197 bool m_external;
198 bool m_externalHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace RAM
203} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTime() const
ResourceShareAssociation & WithAssociatedEntity(const Aws::String &value)
ResourceShareAssociation & WithAssociatedEntity(const char *value)
ResourceShareAssociation & WithStatusMessage(Aws::String &&value)
void SetAssociationType(const ResourceShareAssociationType &value)
ResourceShareAssociation & WithStatusMessage(const char *value)
AWS_RAM_API ResourceShareAssociation(Aws::Utils::Json::JsonView jsonValue)
ResourceShareAssociation & WithResourceShareArn(const Aws::String &value)
ResourceShareAssociation & WithCreationTime(Aws::Utils::DateTime &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShareAssociation & WithAssociationType(ResourceShareAssociationType &&value)
ResourceShareAssociation & WithExternal(bool value)
ResourceShareAssociation & WithCreationTime(const Aws::Utils::DateTime &value)
ResourceShareAssociation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceShareAssociation & WithResourceShareName(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetAssociationType(ResourceShareAssociationType &&value)
void SetResourceShareName(const Aws::String &value)
const ResourceShareAssociationType & GetAssociationType() const
ResourceShareAssociation & WithResourceShareName(const Aws::String &value)
void SetStatus(ResourceShareAssociationStatus &&value)
void SetAssociatedEntity(const Aws::String &value)
ResourceShareAssociation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourceShareAssociation & WithAssociatedEntity(Aws::String &&value)
ResourceShareAssociation & WithStatusMessage(const Aws::String &value)
AWS_RAM_API ResourceShareAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceShareArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
ResourceShareAssociation & WithResourceShareName(const char *value)
ResourceShareAssociation & WithStatus(ResourceShareAssociationStatus &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetStatus(const ResourceShareAssociationStatus &value)
ResourceShareAssociation & WithResourceShareArn(Aws::String &&value)
const ResourceShareAssociationStatus & GetStatus() const
ResourceShareAssociation & WithStatus(const ResourceShareAssociationStatus &value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourceShareAssociation & WithAssociationType(const ResourceShareAssociationType &value)
ResourceShareAssociation & WithResourceShareArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue