/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WorkSpaces { namespace Model { /** */ class RebootWorkspacesRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API RebootWorkspacesRequest(); // 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 "RebootWorkspaces"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline const Aws::Vector& GetRebootWorkspaceRequests() const{ return m_rebootWorkspaceRequests; } /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline bool RebootWorkspaceRequestsHasBeenSet() const { return m_rebootWorkspaceRequestsHasBeenSet; } /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline void SetRebootWorkspaceRequests(const Aws::Vector& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = value; } /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline void SetRebootWorkspaceRequests(Aws::Vector&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = std::move(value); } /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(const Aws::Vector& value) { SetRebootWorkspaceRequests(value); return *this;} /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(Aws::Vector&& value) { SetRebootWorkspaceRequests(std::move(value)); return *this;} /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(const RebootRequest& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(value); return *this; } /** *

The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.

*/ inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(RebootRequest&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(std::move(value)); return *this; } private: Aws::Vector m_rebootWorkspaceRequests; bool m_rebootWorkspaceRequestsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws