AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
51 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
52 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
53 inline RelatedWorkspaceProperties& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
54 inline RelatedWorkspaceProperties& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
55 inline RelatedWorkspaceProperties& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
57
59
62 inline const Aws::String& GetRegion() const{ return m_region; }
63 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
64 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
65 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
66 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
67 inline RelatedWorkspaceProperties& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
68 inline RelatedWorkspaceProperties& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
69 inline RelatedWorkspaceProperties& WithRegion(const char* value) { SetRegion(value); return *this;}
71
73
76 inline const WorkspaceState& GetState() const{ return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(const WorkspaceState& value) { m_stateHasBeenSet = true; m_state = value; }
79 inline void SetState(WorkspaceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
80 inline RelatedWorkspaceProperties& WithState(const WorkspaceState& value) { SetState(value); return *this;}
81 inline RelatedWorkspaceProperties& WithState(WorkspaceState&& value) { SetState(std::move(value)); return *this;}
83
85
88 inline const StandbyWorkspaceRelationshipType& GetType() const{ return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(const StandbyWorkspaceRelationshipType& value) { m_typeHasBeenSet = true; m_type = value; }
91 inline void SetType(StandbyWorkspaceRelationshipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92 inline RelatedWorkspaceProperties& WithType(const StandbyWorkspaceRelationshipType& value) { SetType(value); return *this;}
93 inline RelatedWorkspaceProperties& WithType(StandbyWorkspaceRelationshipType&& value) { SetType(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_workspaceId;
98 bool m_workspaceIdHasBeenSet = false;
99
100 Aws::String m_region;
101 bool m_regionHasBeenSet = false;
102
103 WorkspaceState m_state;
104 bool m_stateHasBeenSet = false;
105
107 bool m_typeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace WorkSpaces
112} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue