AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssociatedResourceId(const Aws::String& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = value; }
52 inline void SetAssociatedResourceId(Aws::String&& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = std::move(value); }
53 inline void SetAssociatedResourceId(const char* value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId.assign(value); }
56 inline BundleResourceAssociation& WithAssociatedResourceId(const char* value) { SetAssociatedResourceId(value); return *this;}
58
60
63 inline const BundleAssociatedResourceType& GetAssociatedResourceType() const{ return m_associatedResourceType; }
64 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
65 inline void SetAssociatedResourceType(const BundleAssociatedResourceType& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = value; }
66 inline void SetAssociatedResourceType(BundleAssociatedResourceType&& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = std::move(value); }
70
72
75 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
76 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
77 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
78 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
79 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
80 inline BundleResourceAssociation& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
81 inline BundleResourceAssociation& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
82 inline BundleResourceAssociation& WithBundleId(const char* value) { SetBundleId(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
90 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
91 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
92 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
93 inline BundleResourceAssociation& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
94 inline BundleResourceAssociation& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
102 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
103 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
104 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
108
110
113 inline const AssociationState& GetState() const{ return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 inline void SetState(const AssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
116 inline void SetState(AssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
117 inline BundleResourceAssociation& WithState(const AssociationState& value) { SetState(value); return *this;}
118 inline BundleResourceAssociation& WithState(AssociationState&& value) { SetState(std::move(value)); return *this;}
120
122
125 inline const AssociationStateReason& GetStateReason() const{ return m_stateReason; }
126 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
127 inline void SetStateReason(const AssociationStateReason& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
128 inline void SetStateReason(AssociationStateReason&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
130 inline BundleResourceAssociation& WithStateReason(AssociationStateReason&& value) { SetStateReason(std::move(value)); return *this;}
132 private:
133
134 Aws::String m_associatedResourceId;
135 bool m_associatedResourceIdHasBeenSet = false;
136
137 BundleAssociatedResourceType m_associatedResourceType;
138 bool m_associatedResourceTypeHasBeenSet = false;
139
140 Aws::String m_bundleId;
141 bool m_bundleIdHasBeenSet = false;
142
143 Aws::Utils::DateTime m_created;
144 bool m_createdHasBeenSet = false;
145
146 Aws::Utils::DateTime m_lastUpdatedTime;
147 bool m_lastUpdatedTimeHasBeenSet = false;
148
149 AssociationState m_state;
150 bool m_stateHasBeenSet = false;
151
152 AssociationStateReason m_stateReason;
153 bool m_stateReasonHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace WorkSpaces
158} // namespace Aws
BundleResourceAssociation & WithBundleId(const Aws::String &value)
BundleResourceAssociation & WithAssociatedResourceType(const BundleAssociatedResourceType &value)
BundleResourceAssociation & WithBundleId(const char *value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
BundleResourceAssociation & WithAssociatedResourceId(const char *value)
void SetAssociatedResourceType(BundleAssociatedResourceType &&value)
BundleResourceAssociation & WithAssociatedResourceId(Aws::String &&value)
BundleResourceAssociation & WithStateReason(AssociationStateReason &&value)
BundleResourceAssociation & WithAssociatedResourceType(BundleAssociatedResourceType &&value)
BundleResourceAssociation & WithState(const AssociationState &value)
void SetCreated(const Aws::Utils::DateTime &value)
BundleResourceAssociation & WithBundleId(Aws::String &&value)
BundleResourceAssociation & WithState(AssociationState &&value)
const AssociationStateReason & GetStateReason() const
BundleResourceAssociation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
const BundleAssociatedResourceType & GetAssociatedResourceType() const
void SetStateReason(const AssociationStateReason &value)
AWS_WORKSPACES_API BundleResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API BundleResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
BundleResourceAssociation & WithAssociatedResourceId(const Aws::String &value)
BundleResourceAssociation & WithCreated(const Aws::Utils::DateTime &value)
BundleResourceAssociation & WithStateReason(const AssociationStateReason &value)
void SetAssociatedResourceType(const BundleAssociatedResourceType &value)
BundleResourceAssociation & WithCreated(Aws::Utils::DateTime &&value)
BundleResourceAssociation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue