AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateStandbyWorkspacesRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/StandbyWorkspace.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API CreateStandbyWorkspacesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateStandbyWorkspaces"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; }
44 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
45 inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = value; }
46 inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::move(value); }
47 inline void SetPrimaryRegion(const char* value) { m_primaryRegionHasBeenSet = true; m_primaryRegion.assign(value); }
49 inline CreateStandbyWorkspacesRequest& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;}
50 inline CreateStandbyWorkspacesRequest& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;}
52
54
57 inline const Aws::Vector<StandbyWorkspace>& GetStandbyWorkspaces() const{ return m_standbyWorkspaces; }
58 inline bool StandbyWorkspacesHasBeenSet() const { return m_standbyWorkspacesHasBeenSet; }
59 inline void SetStandbyWorkspaces(const Aws::Vector<StandbyWorkspace>& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces = value; }
60 inline void SetStandbyWorkspaces(Aws::Vector<StandbyWorkspace>&& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces = std::move(value); }
63 inline CreateStandbyWorkspacesRequest& AddStandbyWorkspaces(const StandbyWorkspace& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces.push_back(value); return *this; }
64 inline CreateStandbyWorkspacesRequest& AddStandbyWorkspaces(StandbyWorkspace&& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_primaryRegion;
69 bool m_primaryRegionHasBeenSet = false;
70
71 Aws::Vector<StandbyWorkspace> m_standbyWorkspaces;
72 bool m_standbyWorkspacesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WorkSpaces
77} // namespace Aws
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStandbyWorkspacesRequest & WithPrimaryRegion(const Aws::String &value)
const Aws::Vector< StandbyWorkspace > & GetStandbyWorkspaces() const
void SetStandbyWorkspaces(const Aws::Vector< StandbyWorkspace > &value)
CreateStandbyWorkspacesRequest & WithPrimaryRegion(Aws::String &&value)
CreateStandbyWorkspacesRequest & AddStandbyWorkspaces(const StandbyWorkspace &value)
void SetStandbyWorkspaces(Aws::Vector< StandbyWorkspace > &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CreateStandbyWorkspacesRequest & WithStandbyWorkspaces(const Aws::Vector< StandbyWorkspace > &value)
CreateStandbyWorkspacesRequest & AddStandbyWorkspaces(StandbyWorkspace &&value)
CreateStandbyWorkspacesRequest & WithStandbyWorkspaces(Aws::Vector< StandbyWorkspace > &&value)
CreateStandbyWorkspacesRequest & WithPrimaryRegion(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector