/** * 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 CloudWatch { namespace Model { /** */ class PutDashboardRequest : public CloudWatchRequest { public: AWS_CLOUDWATCH_API PutDashboardRequest(); // 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 "PutDashboard"; } AWS_CLOUDWATCH_API Aws::String SerializePayload() const override; protected: AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline const Aws::String& GetDashboardName() const{ return m_dashboardName; } /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline bool DashboardNameHasBeenSet() const { return m_dashboardNameHasBeenSet; } /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline void SetDashboardName(const Aws::String& value) { m_dashboardNameHasBeenSet = true; m_dashboardName = value; } /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline void SetDashboardName(Aws::String&& value) { m_dashboardNameHasBeenSet = true; m_dashboardName = std::move(value); } /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline void SetDashboardName(const char* value) { m_dashboardNameHasBeenSet = true; m_dashboardName.assign(value); } /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline PutDashboardRequest& WithDashboardName(const Aws::String& value) { SetDashboardName(value); return *this;} /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline PutDashboardRequest& WithDashboardName(Aws::String&& value) { SetDashboardName(std::move(value)); return *this;} /** *

The name of the dashboard. If a dashboard with this name already exists, this * call modifies that dashboard, replacing its current contents. Otherwise, a new * dashboard is created. The maximum length is 255, and valid characters are A-Z, * a-z, 0-9, "-", and "_". This parameter is required.

*/ inline PutDashboardRequest& WithDashboardName(const char* value) { SetDashboardName(value); return *this;} /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline const Aws::String& GetDashboardBody() const{ return m_dashboardBody; } /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline bool DashboardBodyHasBeenSet() const { return m_dashboardBodyHasBeenSet; } /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline void SetDashboardBody(const Aws::String& value) { m_dashboardBodyHasBeenSet = true; m_dashboardBody = value; } /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline void SetDashboardBody(Aws::String&& value) { m_dashboardBodyHasBeenSet = true; m_dashboardBody = std::move(value); } /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline void SetDashboardBody(const char* value) { m_dashboardBodyHasBeenSet = true; m_dashboardBody.assign(value); } /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline PutDashboardRequest& WithDashboardBody(const Aws::String& value) { SetDashboardBody(value); return *this;} /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline PutDashboardRequest& WithDashboardBody(Aws::String&& value) { SetDashboardBody(std::move(value)); return *this;} /** *

The detailed information about the dashboard in JSON format, including the * widgets to include and their location on the dashboard. This parameter is * required.

For more information about the syntax, see Dashboard * Body Structure and Syntax.

*/ inline PutDashboardRequest& WithDashboardBody(const char* value) { SetDashboardBody(value); return *this;} private: Aws::String m_dashboardName; bool m_dashboardNameHasBeenSet = false; Aws::String m_dashboardBody; bool m_dashboardBodyHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws