AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RelatedWorkspaceProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/StandbyWorkspaceRelationshipType.h>
11#include <aws/workspaces/model/WorkspaceState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace WorkSpaces {
22namespace Model {
23
32 public:
33 AWS_WORKSPACES_API RelatedWorkspaceProperties() = default;
34 AWS_WORKSPACES_API RelatedWorkspaceProperties(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API RelatedWorkspaceProperties& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
43 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
44 template <typename WorkspaceIdT = Aws::String>
45 void SetWorkspaceId(WorkspaceIdT&& value) {
46 m_workspaceIdHasBeenSet = true;
47 m_workspaceId = std::forward<WorkspaceIdT>(value);
48 }
49 template <typename WorkspaceIdT = Aws::String>
51 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRegion() const { return m_region; }
61 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
62 template <typename RegionT = Aws::String>
63 void SetRegion(RegionT&& value) {
64 m_regionHasBeenSet = true;
65 m_region = std::forward<RegionT>(value);
66 }
67 template <typename RegionT = Aws::String>
69 SetRegion(std::forward<RegionT>(value));
70 return *this;
71 }
73
75
78 inline WorkspaceState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(WorkspaceState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline StandbyWorkspaceRelationshipType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105 private:
106 Aws::String m_workspaceId;
107
108 Aws::String m_region;
109
111
113 bool m_workspaceIdHasBeenSet = false;
114 bool m_regionHasBeenSet = false;
115 bool m_stateHasBeenSet = false;
116 bool m_typeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace WorkSpaces
121} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String