AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ApplicationResourceAssociation.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/ApplicationAssociatedResourceType.h>
12#include <aws/workspaces/model/AssociationState.h>
13#include <aws/workspaces/model/AssociationStateReason.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 ApplicationResourceAssociation() = default;
35 AWS_WORKSPACES_API ApplicationResourceAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API ApplicationResourceAssociation& 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& GetApplicationId() const { return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 template <typename ApplicationIdT = Aws::String>
46 void SetApplicationId(ApplicationIdT&& value) {
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAssociatedResourceId() const { return m_associatedResourceId; }
62 inline bool AssociatedResourceIdHasBeenSet() const { return m_associatedResourceIdHasBeenSet; }
63 template <typename AssociatedResourceIdT = Aws::String>
64 void SetAssociatedResourceId(AssociatedResourceIdT&& value) {
65 m_associatedResourceIdHasBeenSet = true;
66 m_associatedResourceId = std::forward<AssociatedResourceIdT>(value);
67 }
68 template <typename AssociatedResourceIdT = Aws::String>
70 SetAssociatedResourceId(std::forward<AssociatedResourceIdT>(value));
71 return *this;
72 }
74
76
79 inline ApplicationAssociatedResourceType GetAssociatedResourceType() const { return m_associatedResourceType; }
80 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
82 m_associatedResourceTypeHasBeenSet = true;
83 m_associatedResourceType = value;
84 }
90
92
95 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
96 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
97 template <typename CreatedT = Aws::Utils::DateTime>
98 void SetCreated(CreatedT&& value) {
99 m_createdHasBeenSet = true;
100 m_created = std::forward<CreatedT>(value);
101 }
102 template <typename CreatedT = Aws::Utils::DateTime>
104 SetCreated(std::forward<CreatedT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
114 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
115 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
116 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
117 m_lastUpdatedTimeHasBeenSet = true;
118 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
119 }
120 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
122 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
123 return *this;
124 }
126
128
131 inline AssociationState GetState() const { return m_state; }
132 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 inline void SetState(AssociationState value) {
134 m_stateHasBeenSet = true;
135 m_state = value;
136 }
138 SetState(value);
139 return *this;
140 }
142
144
147 inline const AssociationStateReason& GetStateReason() const { return m_stateReason; }
148 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
149 template <typename StateReasonT = AssociationStateReason>
150 void SetStateReason(StateReasonT&& value) {
151 m_stateReasonHasBeenSet = true;
152 m_stateReason = std::forward<StateReasonT>(value);
153 }
154 template <typename StateReasonT = AssociationStateReason>
156 SetStateReason(std::forward<StateReasonT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_applicationId;
162
163 Aws::String m_associatedResourceId;
164
166
167 Aws::Utils::DateTime m_created{};
168
169 Aws::Utils::DateTime m_lastUpdatedTime{};
170
172
173 AssociationStateReason m_stateReason;
174 bool m_applicationIdHasBeenSet = false;
175 bool m_associatedResourceIdHasBeenSet = false;
176 bool m_associatedResourceTypeHasBeenSet = false;
177 bool m_createdHasBeenSet = false;
178 bool m_lastUpdatedTimeHasBeenSet = false;
179 bool m_stateHasBeenSet = false;
180 bool m_stateReasonHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace WorkSpaces
185} // namespace Aws
ApplicationResourceAssociation & WithStateReason(StateReasonT &&value)
void SetAssociatedResourceType(ApplicationAssociatedResourceType value)
AWS_WORKSPACES_API ApplicationResourceAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ApplicationResourceAssociation & WithCreated(CreatedT &&value)
ApplicationResourceAssociation & WithAssociatedResourceType(ApplicationAssociatedResourceType value)
AWS_WORKSPACES_API ApplicationResourceAssociation()=default
ApplicationResourceAssociation & WithApplicationId(ApplicationIdT &&value)
ApplicationResourceAssociation & WithState(AssociationState value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ApplicationAssociatedResourceType GetAssociatedResourceType() const
AWS_WORKSPACES_API ApplicationResourceAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ApplicationResourceAssociation & WithAssociatedResourceId(AssociatedResourceIdT &&value)
ApplicationResourceAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String