AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RelatedWorkspaceProperties.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/WorkspaceState.h>
10#include <aws/workspaces/model/StandbyWorkspaceRelationshipType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkSpaces
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_WORKSPACES_API RelatedWorkspaceProperties() = default;
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
49 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
50 template<typename WorkspaceIdT = Aws::String>
51 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
52 template<typename WorkspaceIdT = Aws::String>
53 RelatedWorkspaceProperties& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
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) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
64 template<typename RegionT = Aws::String>
65 RelatedWorkspaceProperties& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
67
69
72 inline WorkspaceState GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 inline void SetState(WorkspaceState value) { m_stateHasBeenSet = true; m_state = value; }
75 inline RelatedWorkspaceProperties& WithState(WorkspaceState value) { SetState(value); return *this;}
77
79
82 inline StandbyWorkspaceRelationshipType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(StandbyWorkspaceRelationshipType value) { m_typeHasBeenSet = true; m_type = value; }
87 private:
88
89 Aws::String m_workspaceId;
90 bool m_workspaceIdHasBeenSet = false;
91
92 Aws::String m_region;
93 bool m_regionHasBeenSet = false;
94
96 bool m_stateHasBeenSet = false;
97
99 bool m_typeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace WorkSpaces
104} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue