AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BundleResourceAssociation.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/BundleAssociatedResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/workspaces/model/AssociationState.h>
12#include <aws/workspaces/model/AssociationStateReason.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkSpaces
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_WORKSPACES_API BundleResourceAssociation() = default;
42 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAssociatedResourceId() const { return m_associatedResourceId; }
50 inline bool AssociatedResourceIdHasBeenSet() const { return m_associatedResourceIdHasBeenSet; }
51 template<typename AssociatedResourceIdT = Aws::String>
52 void SetAssociatedResourceId(AssociatedResourceIdT&& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = std::forward<AssociatedResourceIdT>(value); }
53 template<typename AssociatedResourceIdT = Aws::String>
54 BundleResourceAssociation& WithAssociatedResourceId(AssociatedResourceIdT&& value) { SetAssociatedResourceId(std::forward<AssociatedResourceIdT>(value)); return *this;}
56
58
61 inline BundleAssociatedResourceType GetAssociatedResourceType() const { return m_associatedResourceType; }
62 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
63 inline void SetAssociatedResourceType(BundleAssociatedResourceType value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = value; }
66
68
71 inline const Aws::String& GetBundleId() const { return m_bundleId; }
72 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
73 template<typename BundleIdT = Aws::String>
74 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
75 template<typename BundleIdT = Aws::String>
76 BundleResourceAssociation& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
84 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
85 template<typename CreatedT = Aws::Utils::DateTime>
86 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
87 template<typename CreatedT = Aws::Utils::DateTime>
88 BundleResourceAssociation& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
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) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
99 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
100 BundleResourceAssociation& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
102
104
107 inline AssociationState GetState() const { return m_state; }
108 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
109 inline void SetState(AssociationState value) { m_stateHasBeenSet = true; m_state = value; }
110 inline BundleResourceAssociation& WithState(AssociationState value) { SetState(value); return *this;}
112
114
117 inline const AssociationStateReason& GetStateReason() const { return m_stateReason; }
118 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
119 template<typename StateReasonT = AssociationStateReason>
120 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
121 template<typename StateReasonT = AssociationStateReason>
122 BundleResourceAssociation& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
124 private:
125
126 Aws::String m_associatedResourceId;
127 bool m_associatedResourceIdHasBeenSet = false;
128
130 bool m_associatedResourceTypeHasBeenSet = false;
131
132 Aws::String m_bundleId;
133 bool m_bundleIdHasBeenSet = false;
134
135 Aws::Utils::DateTime m_created{};
136 bool m_createdHasBeenSet = false;
137
138 Aws::Utils::DateTime m_lastUpdatedTime{};
139 bool m_lastUpdatedTimeHasBeenSet = false;
140
142 bool m_stateHasBeenSet = false;
143
144 AssociationStateReason m_stateReason;
145 bool m_stateReasonHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace WorkSpaces
150} // namespace Aws
BundleResourceAssociation & WithState(AssociationState value)
BundleAssociatedResourceType GetAssociatedResourceType() const
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKSPACES_API BundleResourceAssociation()=default
BundleResourceAssociation & WithCreated(CreatedT &&value)
const AssociationStateReason & GetStateReason() const
BundleResourceAssociation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
BundleResourceAssociation & WithBundleId(BundleIdT &&value)
AWS_WORKSPACES_API BundleResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociatedResourceId(AssociatedResourceIdT &&value)
AWS_WORKSPACES_API BundleResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
BundleResourceAssociation & WithAssociatedResourceType(BundleAssociatedResourceType value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetAssociatedResourceType(BundleAssociatedResourceType value)
BundleResourceAssociation & WithAssociatedResourceId(AssociatedResourceIdT &&value)
BundleResourceAssociation & WithStateReason(StateReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue