AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceResourceAssociation.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/WorkSpaceAssociatedResourceType.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 WorkspaceResourceAssociation();
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 WorkspaceResourceAssociation& WithAssociatedResourceId(const char* value) { SetAssociatedResourceId(value); return *this;}
58
60
63 inline const WorkSpaceAssociatedResourceType& GetAssociatedResourceType() const{ return m_associatedResourceType; }
64 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
65 inline void SetAssociatedResourceType(const WorkSpaceAssociatedResourceType& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = value; }
66 inline void SetAssociatedResourceType(WorkSpaceAssociatedResourceType&& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = std::move(value); }
70
72
75 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
76 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
77 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
78 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
79 inline WorkspaceResourceAssociation& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
80 inline WorkspaceResourceAssociation& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
88 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
89 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
90 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
94
96
99 inline const AssociationState& GetState() const{ return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
101 inline void SetState(const AssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
102 inline void SetState(AssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
103 inline WorkspaceResourceAssociation& WithState(const AssociationState& value) { SetState(value); return *this;}
104 inline WorkspaceResourceAssociation& WithState(AssociationState&& value) { SetState(std::move(value)); return *this;}
106
108
111 inline const AssociationStateReason& GetStateReason() const{ return m_stateReason; }
112 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
113 inline void SetStateReason(const AssociationStateReason& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
114 inline void SetStateReason(AssociationStateReason&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
116 inline WorkspaceResourceAssociation& WithStateReason(AssociationStateReason&& value) { SetStateReason(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
124 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
125 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
126 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
127 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
128 inline WorkspaceResourceAssociation& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
129 inline WorkspaceResourceAssociation& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
130 inline WorkspaceResourceAssociation& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
132 private:
133
134 Aws::String m_associatedResourceId;
135 bool m_associatedResourceIdHasBeenSet = false;
136
137 WorkSpaceAssociatedResourceType m_associatedResourceType;
138 bool m_associatedResourceTypeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_created;
141 bool m_createdHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastUpdatedTime;
144 bool m_lastUpdatedTimeHasBeenSet = false;
145
146 AssociationState m_state;
147 bool m_stateHasBeenSet = false;
148
149 AssociationStateReason m_stateReason;
150 bool m_stateReasonHasBeenSet = false;
151
152 Aws::String m_workspaceId;
153 bool m_workspaceIdHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace WorkSpaces
158} // namespace Aws
WorkspaceResourceAssociation & WithWorkspaceId(const char *value)
WorkspaceResourceAssociation & WithAssociatedResourceId(const Aws::String &value)
WorkspaceResourceAssociation & WithState(const AssociationState &value)
WorkspaceResourceAssociation & WithState(AssociationState &&value)
WorkspaceResourceAssociation & WithAssociatedResourceId(const char *value)
WorkspaceResourceAssociation & WithAssociatedResourceType(const WorkSpaceAssociatedResourceType &value)
WorkspaceResourceAssociation & WithStateReason(AssociationStateReason &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceResourceAssociation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
const WorkSpaceAssociatedResourceType & GetAssociatedResourceType() const
void SetAssociatedResourceType(const WorkSpaceAssociatedResourceType &value)
void SetAssociatedResourceType(WorkSpaceAssociatedResourceType &&value)
WorkspaceResourceAssociation & WithAssociatedResourceType(WorkSpaceAssociatedResourceType &&value)
WorkspaceResourceAssociation & WithCreated(const Aws::Utils::DateTime &value)
WorkspaceResourceAssociation & WithStateReason(const AssociationStateReason &value)
WorkspaceResourceAssociation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
WorkspaceResourceAssociation & WithWorkspaceId(const Aws::String &value)
WorkspaceResourceAssociation & WithAssociatedResourceId(Aws::String &&value)
AWS_WORKSPACES_API WorkspaceResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API WorkspaceResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
WorkspaceResourceAssociation & WithCreated(Aws::Utils::DateTime &&value)
WorkspaceResourceAssociation & WithWorkspaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue