/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace WorkSpaces { namespace Model { /** */ class CreateStandbyWorkspacesRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API CreateStandbyWorkspacesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateStandbyWorkspaces"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Region of the primary WorkSpace.

*/ inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; } /** *

The Region of the primary WorkSpace.

*/ inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; } /** *

The Region of the primary WorkSpace.

*/ inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = value; } /** *

The Region of the primary WorkSpace.

*/ inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::move(value); } /** *

The Region of the primary WorkSpace.

*/ inline void SetPrimaryRegion(const char* value) { m_primaryRegionHasBeenSet = true; m_primaryRegion.assign(value); } /** *

The Region of the primary WorkSpace.

*/ inline CreateStandbyWorkspacesRequest& WithPrimaryRegion(const Aws::String& value) { SetPrimaryRegion(value); return *this;} /** *

The Region of the primary WorkSpace.

*/ inline CreateStandbyWorkspacesRequest& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;} /** *

The Region of the primary WorkSpace.

*/ inline CreateStandbyWorkspacesRequest& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;} /** *

Information about the standby WorkSpace to be created.

*/ inline const Aws::Vector& GetStandbyWorkspaces() const{ return m_standbyWorkspaces; } /** *

Information about the standby WorkSpace to be created.

*/ inline bool StandbyWorkspacesHasBeenSet() const { return m_standbyWorkspacesHasBeenSet; } /** *

Information about the standby WorkSpace to be created.

*/ inline void SetStandbyWorkspaces(const Aws::Vector& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces = value; } /** *

Information about the standby WorkSpace to be created.

*/ inline void SetStandbyWorkspaces(Aws::Vector&& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces = std::move(value); } /** *

Information about the standby WorkSpace to be created.

*/ inline CreateStandbyWorkspacesRequest& WithStandbyWorkspaces(const Aws::Vector& value) { SetStandbyWorkspaces(value); return *this;} /** *

Information about the standby WorkSpace to be created.

*/ inline CreateStandbyWorkspacesRequest& WithStandbyWorkspaces(Aws::Vector&& value) { SetStandbyWorkspaces(std::move(value)); return *this;} /** *

Information about the standby WorkSpace to be created.

*/ inline CreateStandbyWorkspacesRequest& AddStandbyWorkspaces(const StandbyWorkspace& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces.push_back(value); return *this; } /** *

Information about the standby WorkSpace to be created.

*/ inline CreateStandbyWorkspacesRequest& AddStandbyWorkspaces(StandbyWorkspace&& value) { m_standbyWorkspacesHasBeenSet = true; m_standbyWorkspaces.push_back(std::move(value)); return *this; } private: Aws::String m_primaryRegion; bool m_primaryRegionHasBeenSet = false; Aws::Vector m_standbyWorkspaces; bool m_standbyWorkspacesHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws