/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ManagedGrafana { namespace Model { /** */ class UpdateWorkspaceConfigurationRequest : public ManagedGrafanaRequest { public: AWS_MANAGEDGRAFANA_API UpdateWorkspaceConfigurationRequest(); // 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 "UpdateWorkspaceConfiguration"; } AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override; /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline const Aws::String& GetConfiguration() const{ return m_configuration; } /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); } /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline UpdateWorkspaceConfigurationRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;} /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline UpdateWorkspaceConfigurationRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;} /** *

The new configuration string for the workspace. For more information about * the format and configuration options available, see Working * in your Grafana workspace.

*/ inline UpdateWorkspaceConfigurationRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;} /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline const Aws::String& GetGrafanaVersion() const{ return m_grafanaVersion; } /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline bool GrafanaVersionHasBeenSet() const { return m_grafanaVersionHasBeenSet; } /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline void SetGrafanaVersion(const Aws::String& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = value; } /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline void SetGrafanaVersion(Aws::String&& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = std::move(value); } /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline void SetGrafanaVersion(const char* value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion.assign(value); } /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline UpdateWorkspaceConfigurationRequest& WithGrafanaVersion(const Aws::String& value) { SetGrafanaVersion(value); return *this;} /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline UpdateWorkspaceConfigurationRequest& WithGrafanaVersion(Aws::String&& value) { SetGrafanaVersion(std::move(value)); return *this;} /** *

Specifies the version of Grafana to support in the new workspace.

Can * only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for * example, from 9.4 to 8.4).

To know what versions are available to upgrade * to for a specific workspace, see the ListVersions operation.

*/ inline UpdateWorkspaceConfigurationRequest& WithGrafanaVersion(const char* value) { SetGrafanaVersion(value); return *this;} /** *

The ID of the workspace to update.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace to update.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace to update.

*/ inline UpdateWorkspaceConfigurationRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace to update.

*/ inline UpdateWorkspaceConfigurationRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace to update.

*/ inline UpdateWorkspaceConfigurationRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} private: Aws::String m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_grafanaVersion; bool m_grafanaVersionHasBeenSet = false; Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws