AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceResourceAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/AssociationState.h>
12#include <aws/workspaces/model/AssociationStateReason.h>
13#include <aws/workspaces/model/WorkSpaceAssociatedResourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace WorkSpaces {
24namespace Model {
25
33 public:
34 AWS_WORKSPACES_API WorkspaceResourceAssociation() = default;
35 AWS_WORKSPACES_API WorkspaceResourceAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API WorkspaceResourceAssociation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetAssociatedResourceId() const { return m_associatedResourceId; }
44 inline bool AssociatedResourceIdHasBeenSet() const { return m_associatedResourceIdHasBeenSet; }
45 template <typename AssociatedResourceIdT = Aws::String>
46 void SetAssociatedResourceId(AssociatedResourceIdT&& value) {
47 m_associatedResourceIdHasBeenSet = true;
48 m_associatedResourceId = std::forward<AssociatedResourceIdT>(value);
49 }
50 template <typename AssociatedResourceIdT = Aws::String>
52 SetAssociatedResourceId(std::forward<AssociatedResourceIdT>(value));
53 return *this;
54 }
56
58
61 inline WorkSpaceAssociatedResourceType GetAssociatedResourceType() const { return m_associatedResourceType; }
62 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
64 m_associatedResourceTypeHasBeenSet = true;
65 m_associatedResourceType = value;
66 }
72
74
77 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
78 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
79 template <typename CreatedT = Aws::Utils::DateTime>
80 void SetCreated(CreatedT&& value) {
81 m_createdHasBeenSet = true;
82 m_created = std::forward<CreatedT>(value);
83 }
84 template <typename CreatedT = Aws::Utils::DateTime>
86 SetCreated(std::forward<CreatedT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
96 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
97 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
98 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
99 m_lastUpdatedTimeHasBeenSet = true;
100 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
101 }
102 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
104 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
105 return *this;
106 }
108
110
113 inline AssociationState GetState() const { return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 inline void SetState(AssociationState value) {
116 m_stateHasBeenSet = true;
117 m_state = value;
118 }
120 SetState(value);
121 return *this;
122 }
124
126
129 inline const AssociationStateReason& GetStateReason() const { return m_stateReason; }
130 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
131 template <typename StateReasonT = AssociationStateReason>
132 void SetStateReason(StateReasonT&& value) {
133 m_stateReasonHasBeenSet = true;
134 m_stateReason = std::forward<StateReasonT>(value);
135 }
136 template <typename StateReasonT = AssociationStateReason>
138 SetStateReason(std::forward<StateReasonT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
148 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
149 template <typename WorkspaceIdT = Aws::String>
150 void SetWorkspaceId(WorkspaceIdT&& value) {
151 m_workspaceIdHasBeenSet = true;
152 m_workspaceId = std::forward<WorkspaceIdT>(value);
153 }
154 template <typename WorkspaceIdT = Aws::String>
156 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_associatedResourceId;
162
164
165 Aws::Utils::DateTime m_created{};
166
167 Aws::Utils::DateTime m_lastUpdatedTime{};
168
170
171 AssociationStateReason m_stateReason;
172
173 Aws::String m_workspaceId;
174 bool m_associatedResourceIdHasBeenSet = false;
175 bool m_associatedResourceTypeHasBeenSet = false;
176 bool m_createdHasBeenSet = false;
177 bool m_lastUpdatedTimeHasBeenSet = false;
178 bool m_stateHasBeenSet = false;
179 bool m_stateReasonHasBeenSet = false;
180 bool m_workspaceIdHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace WorkSpaces
185} // namespace Aws
AWS_WORKSPACES_API WorkspaceResourceAssociation()=default
WorkSpaceAssociatedResourceType GetAssociatedResourceType() const
AWS_WORKSPACES_API WorkspaceResourceAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceResourceAssociation & WithAssociatedResourceType(WorkSpaceAssociatedResourceType value)
WorkspaceResourceAssociation & WithStateReason(StateReasonT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WorkspaceResourceAssociation & WithCreated(CreatedT &&value)
WorkspaceResourceAssociation & WithAssociatedResourceId(AssociatedResourceIdT &&value)
WorkspaceResourceAssociation & WithWorkspaceId(WorkspaceIdT &&value)
AWS_WORKSPACES_API WorkspaceResourceAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceResourceAssociation & WithState(AssociationState value)
void SetAssociatedResourceType(WorkSpaceAssociatedResourceType value)
WorkspaceResourceAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String