AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BundleResourceAssociation.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/BundleAssociatedResourceType.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 BundleResourceAssociation() = default;
35 AWS_WORKSPACES_API BundleResourceAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API BundleResourceAssociation& 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>
51 BundleResourceAssociation& WithAssociatedResourceId(AssociatedResourceIdT&& value) {
52 SetAssociatedResourceId(std::forward<AssociatedResourceIdT>(value));
53 return *this;
54 }
56
58
61 inline BundleAssociatedResourceType 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::String& GetBundleId() const { return m_bundleId; }
78 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
79 template <typename BundleIdT = Aws::String>
80 void SetBundleId(BundleIdT&& value) {
81 m_bundleIdHasBeenSet = true;
82 m_bundleId = std::forward<BundleIdT>(value);
83 }
84 template <typename BundleIdT = Aws::String>
86 SetBundleId(std::forward<BundleIdT>(value));
87 return *this;
88 }
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_associatedResourceId;
162
164
165 Aws::String m_bundleId;
166
167 Aws::Utils::DateTime m_created{};
168
169 Aws::Utils::DateTime m_lastUpdatedTime{};
170
172
173 AssociationStateReason m_stateReason;
174 bool m_associatedResourceIdHasBeenSet = false;
175 bool m_associatedResourceTypeHasBeenSet = false;
176 bool m_bundleIdHasBeenSet = 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
BundleResourceAssociation & WithState(AssociationState value)
BundleAssociatedResourceType GetAssociatedResourceType() const
AWS_WORKSPACES_API BundleResourceAssociation()=default
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
BundleResourceAssociation & WithCreated(CreatedT &&value)
const AssociationStateReason & GetStateReason() const
BundleResourceAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_WORKSPACES_API BundleResourceAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
BundleResourceAssociation & WithBundleId(BundleIdT &&value)
void SetAssociatedResourceId(AssociatedResourceIdT &&value)
BundleResourceAssociation & WithAssociatedResourceType(BundleAssociatedResourceType value)
AWS_WORKSPACES_API BundleResourceAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAssociatedResourceType(BundleAssociatedResourceType value)
BundleResourceAssociation & WithAssociatedResourceId(AssociatedResourceIdT &&value)
BundleResourceAssociation & WithStateReason(StateReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String