AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
38 AWS_RAM_API ResourceShareAssociation() = default;
42
43
45
50 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
51 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
52 template<typename ResourceShareArnT = Aws::String>
53 void SetResourceShareArn(ResourceShareArnT&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::forward<ResourceShareArnT>(value); }
54 template<typename ResourceShareArnT = Aws::String>
55 ResourceShareAssociation& WithResourceShareArn(ResourceShareArnT&& value) { SetResourceShareArn(std::forward<ResourceShareArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetResourceShareName() const { return m_resourceShareName; }
63 inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; }
64 template<typename ResourceShareNameT = Aws::String>
65 void SetResourceShareName(ResourceShareNameT&& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = std::forward<ResourceShareNameT>(value); }
66 template<typename ResourceShareNameT = Aws::String>
67 ResourceShareAssociation& WithResourceShareName(ResourceShareNameT&& value) { SetResourceShareName(std::forward<ResourceShareNameT>(value)); return *this;}
69
71
84 inline const Aws::String& GetAssociatedEntity() const { return m_associatedEntity; }
85 inline bool AssociatedEntityHasBeenSet() const { return m_associatedEntityHasBeenSet; }
86 template<typename AssociatedEntityT = Aws::String>
87 void SetAssociatedEntity(AssociatedEntityT&& value) { m_associatedEntityHasBeenSet = true; m_associatedEntity = std::forward<AssociatedEntityT>(value); }
88 template<typename AssociatedEntityT = Aws::String>
89 ResourceShareAssociation& WithAssociatedEntity(AssociatedEntityT&& value) { SetAssociatedEntity(std::forward<AssociatedEntityT>(value)); return *this;}
91
93
96 inline ResourceShareAssociationType GetAssociationType() const { return m_associationType; }
97 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
98 inline void SetAssociationType(ResourceShareAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
101
103
106 inline ResourceShareAssociationStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(ResourceShareAssociationStatus value) { m_statusHasBeenSet = true; m_status = value; }
111
113
116 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
117 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
118 template<typename StatusMessageT = Aws::String>
119 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
120 template<typename StatusMessageT = Aws::String>
121 ResourceShareAssociation& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
130 template<typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
132 template<typename CreationTimeT = Aws::Utils::DateTime>
133 ResourceShareAssociation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
141 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
142 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
143 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
144 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
145 ResourceShareAssociation& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
147
149
154 inline bool GetExternal() const { return m_external; }
155 inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; }
156 inline void SetExternal(bool value) { m_externalHasBeenSet = true; m_external = value; }
157 inline ResourceShareAssociation& WithExternal(bool value) { SetExternal(value); return *this;}
159 private:
160
161 Aws::String m_resourceShareArn;
162 bool m_resourceShareArnHasBeenSet = false;
163
164 Aws::String m_resourceShareName;
165 bool m_resourceShareNameHasBeenSet = false;
166
167 Aws::String m_associatedEntity;
168 bool m_associatedEntityHasBeenSet = false;
169
171 bool m_associationTypeHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_statusMessage;
177 bool m_statusMessageHasBeenSet = false;
178
179 Aws::Utils::DateTime m_creationTime{};
180 bool m_creationTimeHasBeenSet = false;
181
182 Aws::Utils::DateTime m_lastUpdatedTime{};
183 bool m_lastUpdatedTimeHasBeenSet = false;
184
185 bool m_external{false};
186 bool m_externalHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace RAM
191} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_RAM_API ResourceShareAssociation()=default
ResourceShareAssociation & WithAssociationType(ResourceShareAssociationType value)
void SetResourceShareName(ResourceShareNameT &&value)
ResourceShareAssociation & WithStatusMessage(StatusMessageT &&value)
AWS_RAM_API ResourceShareAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShareAssociationType GetAssociationType() const
ResourceShareAssociation & WithExternal(bool value)
ResourceShareAssociation & WithCreationTime(CreationTimeT &&value)
void SetStatus(ResourceShareAssociationStatus value)
ResourceShareAssociation & WithResourceShareName(ResourceShareNameT &&value)
void SetResourceShareArn(ResourceShareArnT &&value)
ResourceShareAssociationStatus GetStatus() const
AWS_RAM_API ResourceShareAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociationType(ResourceShareAssociationType value)
const Aws::Utils::DateTime & GetCreationTime() const
ResourceShareAssociation & WithResourceShareArn(ResourceShareArnT &&value)
ResourceShareAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetAssociatedEntity(AssociatedEntityT &&value)
ResourceShareAssociation & WithStatus(ResourceShareAssociationStatus value)
ResourceShareAssociation & WithAssociatedEntity(AssociatedEntityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue