AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
MigrationWorkspace.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
30 public:
31 AWS_OPENSEARCHSERVICE_API MigrationWorkspace() = default;
32 AWS_OPENSEARCHSERVICE_API MigrationWorkspace(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API MigrationWorkspace& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
42 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
43 template <typename WorkspaceIdT = Aws::String>
44 void SetWorkspaceId(WorkspaceIdT&& value) {
45 m_workspaceIdHasBeenSet = true;
46 m_workspaceId = std::forward<WorkspaceIdT>(value);
47 }
48 template <typename WorkspaceIdT = Aws::String>
49 MigrationWorkspace& WithWorkspaceId(WorkspaceIdT&& value) {
50 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
51 return *this;
52 }
54
56
60 inline bool GetCreateWorkspace() const { return m_createWorkspace; }
61 inline bool CreateWorkspaceHasBeenSet() const { return m_createWorkspaceHasBeenSet; }
62 inline void SetCreateWorkspace(bool value) {
63 m_createWorkspaceHasBeenSet = true;
64 m_createWorkspace = value;
65 }
67 SetCreateWorkspace(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 MigrationWorkspace& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 template <typename TypeT = Aws::String>
98 void SetType(TypeT&& value) {
99 m_typeHasBeenSet = true;
100 m_type = std::forward<TypeT>(value);
101 }
102 template <typename TypeT = Aws::String>
103 MigrationWorkspace& WithType(TypeT&& value) {
104 SetType(std::forward<TypeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_workspaceId;
110
111 bool m_createWorkspace{false};
112
113 Aws::String m_name;
114
115 Aws::String m_type;
116 bool m_workspaceIdHasBeenSet = false;
117 bool m_createWorkspaceHasBeenSet = false;
118 bool m_nameHasBeenSet = false;
119 bool m_typeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace OpenSearchService
124} // namespace Aws
AWS_OPENSEARCHSERVICE_API MigrationWorkspace()=default
AWS_OPENSEARCHSERVICE_API MigrationWorkspace & operator=(Aws::Utils::Json::JsonView jsonValue)
MigrationWorkspace & WithName(NameT &&value)
MigrationWorkspace & WithCreateWorkspace(bool value)
MigrationWorkspace & WithWorkspaceId(WorkspaceIdT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API MigrationWorkspace(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue