AWS SDK for C++  1.9.131
AWS SDK for C++
MigrateWorkspaceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkSpaces
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "MigrateWorkspace"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetSourceWorkspaceId() const{ return m_sourceWorkspaceId; }
41 
45  inline bool SourceWorkspaceIdHasBeenSet() const { return m_sourceWorkspaceIdHasBeenSet; }
46 
50  inline void SetSourceWorkspaceId(const Aws::String& value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId = value; }
51 
55  inline void SetSourceWorkspaceId(Aws::String&& value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId = std::move(value); }
56 
60  inline void SetSourceWorkspaceId(const char* value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId.assign(value); }
61 
65  inline MigrateWorkspaceRequest& WithSourceWorkspaceId(const Aws::String& value) { SetSourceWorkspaceId(value); return *this;}
66 
70  inline MigrateWorkspaceRequest& WithSourceWorkspaceId(Aws::String&& value) { SetSourceWorkspaceId(std::move(value)); return *this;}
71 
75  inline MigrateWorkspaceRequest& WithSourceWorkspaceId(const char* value) { SetSourceWorkspaceId(value); return *this;}
76 
77 
81  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
82 
86  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
87 
91  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
92 
96  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
97 
101  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
102 
106  inline MigrateWorkspaceRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
107 
111  inline MigrateWorkspaceRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
112 
116  inline MigrateWorkspaceRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
117 
118  private:
119 
120  Aws::String m_sourceWorkspaceId;
121  bool m_sourceWorkspaceIdHasBeenSet;
122 
123  Aws::String m_bundleId;
124  bool m_bundleIdHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace WorkSpaces
129 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::GetSourceWorkspaceId
const Aws::String & GetSourceWorkspaceId() const
Definition: MigrateWorkspaceRequest.h:40
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetSourceWorkspaceId
void SetSourceWorkspaceId(const Aws::String &value)
Definition: MigrateWorkspaceRequest.h:50
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: MigrateWorkspaceRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::MigrateWorkspaceRequest
Definition: MigrateWorkspaceRequest.h:22
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::MigrateWorkspaceRequest
MigrateWorkspaceRequest()
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: MigrateWorkspaceRequest.h:96
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: MigrateWorkspaceRequest.h:91
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithBundleId
MigrateWorkspaceRequest & WithBundleId(const Aws::String &value)
Definition: MigrateWorkspaceRequest.h:106
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetSourceWorkspaceId
void SetSourceWorkspaceId(const char *value)
Definition: MigrateWorkspaceRequest.h:60
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithBundleId
MigrateWorkspaceRequest & WithBundleId(Aws::String &&value)
Definition: MigrateWorkspaceRequest.h:111
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithSourceWorkspaceId
MigrateWorkspaceRequest & WithSourceWorkspaceId(Aws::String &&value)
Definition: MigrateWorkspaceRequest.h:70
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithBundleId
MigrateWorkspaceRequest & WithBundleId(const char *value)
Definition: MigrateWorkspaceRequest.h:116
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetSourceWorkspaceId
void SetSourceWorkspaceId(Aws::String &&value)
Definition: MigrateWorkspaceRequest.h:55
AWSString.h
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SourceWorkspaceIdHasBeenSet
bool SourceWorkspaceIdHasBeenSet() const
Definition: MigrateWorkspaceRequest.h:45
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithSourceWorkspaceId
MigrateWorkspaceRequest & WithSourceWorkspaceId(const Aws::String &value)
Definition: MigrateWorkspaceRequest.h:65
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::WithSourceWorkspaceId
MigrateWorkspaceRequest & WithSourceWorkspaceId(const char *value)
Definition: MigrateWorkspaceRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: MigrateWorkspaceRequest.h:86
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::SetBundleId
void SetBundleId(const char *value)
Definition: MigrateWorkspaceRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::MigrateWorkspaceRequest::GetBundleId
const Aws::String & GetBundleId() const
Definition: MigrateWorkspaceRequest.h:81