/** * 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 CloudWatchRUM { namespace Model { /** */ class UpdateAppMonitorRequest : public CloudWatchRUMRequest { public: AWS_CLOUDWATCHRUM_API UpdateAppMonitorRequest(); // 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 "UpdateAppMonitor"; } AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override; /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline const AppMonitorConfiguration& GetAppMonitorConfiguration() const{ return m_appMonitorConfiguration; } /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline bool AppMonitorConfigurationHasBeenSet() const { return m_appMonitorConfigurationHasBeenSet; } /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline void SetAppMonitorConfiguration(const AppMonitorConfiguration& value) { m_appMonitorConfigurationHasBeenSet = true; m_appMonitorConfiguration = value; } /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline void SetAppMonitorConfiguration(AppMonitorConfiguration&& value) { m_appMonitorConfigurationHasBeenSet = true; m_appMonitorConfiguration = std::move(value); } /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline UpdateAppMonitorRequest& WithAppMonitorConfiguration(const AppMonitorConfiguration& value) { SetAppMonitorConfiguration(value); return *this;} /** *

A structure that contains much of the configuration data for the app monitor. * If you are using Amazon Cognito for authorization, you must include this * structure in your request, and it must include the ID of the Amazon Cognito * identity pool to use for authorization. If you don't include * AppMonitorConfiguration, you must set up your own authorization * method. For more information, see Authorize * your application to send data to Amazon Web Services.

*/ inline UpdateAppMonitorRequest& WithAppMonitorConfiguration(AppMonitorConfiguration&& value) { SetAppMonitorConfiguration(std::move(value)); return *this;} /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline const CustomEvents& GetCustomEvents() const{ return m_customEvents; } /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline bool CustomEventsHasBeenSet() const { return m_customEventsHasBeenSet; } /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline void SetCustomEvents(const CustomEvents& value) { m_customEventsHasBeenSet = true; m_customEvents = value; } /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline void SetCustomEvents(CustomEvents&& value) { m_customEventsHasBeenSet = true; m_customEvents = std::move(value); } /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline UpdateAppMonitorRequest& WithCustomEvents(const CustomEvents& value) { SetCustomEvents(value); return *this;} /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*

For more information about custom events, see Send * custom events.

*/ inline UpdateAppMonitorRequest& WithCustomEvents(CustomEvents&& value) { SetCustomEvents(std::move(value)); return *this;} /** *

Data collected by RUM is kept by RUM for 30 days and then deleted. This * parameter specifies whether RUM sends a copy of this telemetry data to Amazon * CloudWatch Logs in your account. This enables you to keep the telemetry data for * more than 30 days, but it does incur Amazon CloudWatch Logs charges.

*/ inline bool GetCwLogEnabled() const{ return m_cwLogEnabled; } /** *

Data collected by RUM is kept by RUM for 30 days and then deleted. This * parameter specifies whether RUM sends a copy of this telemetry data to Amazon * CloudWatch Logs in your account. This enables you to keep the telemetry data for * more than 30 days, but it does incur Amazon CloudWatch Logs charges.

*/ inline bool CwLogEnabledHasBeenSet() const { return m_cwLogEnabledHasBeenSet; } /** *

Data collected by RUM is kept by RUM for 30 days and then deleted. This * parameter specifies whether RUM sends a copy of this telemetry data to Amazon * CloudWatch Logs in your account. This enables you to keep the telemetry data for * more than 30 days, but it does incur Amazon CloudWatch Logs charges.

*/ inline void SetCwLogEnabled(bool value) { m_cwLogEnabledHasBeenSet = true; m_cwLogEnabled = value; } /** *

Data collected by RUM is kept by RUM for 30 days and then deleted. This * parameter specifies whether RUM sends a copy of this telemetry data to Amazon * CloudWatch Logs in your account. This enables you to keep the telemetry data for * more than 30 days, but it does incur Amazon CloudWatch Logs charges.

*/ inline UpdateAppMonitorRequest& WithCwLogEnabled(bool value) { SetCwLogEnabled(value); return *this;} /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline UpdateAppMonitorRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline UpdateAppMonitorRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The top-level internet domain name for which your application has * administrative authority.

*/ inline UpdateAppMonitorRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The name of the app monitor to update.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the app monitor to update.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the app monitor to update.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the app monitor to update.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the app monitor to update.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the app monitor to update.

*/ inline UpdateAppMonitorRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the app monitor to update.

*/ inline UpdateAppMonitorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the app monitor to update.

*/ inline UpdateAppMonitorRequest& WithName(const char* value) { SetName(value); return *this;} private: AppMonitorConfiguration m_appMonitorConfiguration; bool m_appMonitorConfigurationHasBeenSet = false; CustomEvents m_customEvents; bool m_customEventsHasBeenSet = false; bool m_cwLogEnabled; bool m_cwLogEnabledHasBeenSet = false; Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws