/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudwatchrum.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateAppMonitorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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.
*
* If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. *
*/ private AppMonitorConfiguration appMonitorConfiguration; /** *
* Specifies whether this app monitor allows the web client to define and send custom events. If you omit this
* parameter, custom events are DISABLED
.
*
* For more information about custom events, see Send * custom events. *
*/ private CustomEvents customEvents; /** ** 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. *
*
* If you omit this parameter, the default is false
.
*
* The top-level internet domain name for which your application has administrative authority. *
*/ private String domain; /** ** A name for the app monitor. *
*/ private String name; /** ** Assigns one or more tags (key-value pairs) to the app monitor. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions by * granting a user permission to access or change only resources with certain tag values. *
** Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of * characters. *
** You can associate as many as 50 tags with an app monitor. *
** For more information, see Tagging Amazon * Web Services resources. *
*/ private java.util.Map
* 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.
*
* If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. *
* * @param 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.
* * If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. */ public void setAppMonitorConfiguration(AppMonitorConfiguration appMonitorConfiguration) { this.appMonitorConfiguration = 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.
*
* If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. *
* * @return 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.
* * If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. */ public AppMonitorConfiguration getAppMonitorConfiguration() { return this.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.
*
* If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. *
* * @param 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.
* * If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppMonitorRequest withAppMonitorConfiguration(AppMonitorConfiguration appMonitorConfiguration) { setAppMonitorConfiguration(appMonitorConfiguration); return this; } /** *
* Specifies whether this app monitor allows the web client to define and send custom events. If you omit this
* parameter, custom events are DISABLED
.
*
* For more information about custom events, see Send * custom events. *
* * @param customEvents * Specifies whether this app monitor allows the web client to define and send custom events. If you omit * this parameter, custom events areDISABLED
.
* * For more information about custom events, see Send custom events. */ public void setCustomEvents(CustomEvents customEvents) { this.customEvents = customEvents; } /** *
* Specifies whether this app monitor allows the web client to define and send custom events. If you omit this
* parameter, custom events are DISABLED
.
*
* For more information about custom events, see Send * custom events. *
* * @return Specifies whether this app monitor allows the web client to define and send custom events. If you omit * this parameter, custom events areDISABLED
.
* * For more information about custom events, see Send custom events. */ public CustomEvents getCustomEvents() { return this.customEvents; } /** *
* Specifies whether this app monitor allows the web client to define and send custom events. If you omit this
* parameter, custom events are DISABLED
.
*
* For more information about custom events, see Send * custom events. *
* * @param customEvents * Specifies whether this app monitor allows the web client to define and send custom events. If you omit * this parameter, custom events areDISABLED
.
* * For more information about custom events, see Send custom events. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppMonitorRequest withCustomEvents(CustomEvents customEvents) { setCustomEvents(customEvents); 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. *
*
* If you omit this parameter, the default is false
.
*
* If you omit this parameter, the default is false
.
*/
public void setCwLogEnabled(Boolean cwLogEnabled) {
this.cwLogEnabled = 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. *
*
* If you omit this parameter, the default is false
.
*
* If you omit this parameter, the default is false
.
*/
public Boolean getCwLogEnabled() {
return this.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. *
*
* If you omit this parameter, the default is false
.
*
* If you omit this parameter, the default is false
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppMonitorRequest withCwLogEnabled(Boolean cwLogEnabled) {
setCwLogEnabled(cwLogEnabled);
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. *
*
* If you omit this parameter, the default is false
.
*
* If you omit this parameter, the default is false
.
*/
public Boolean isCwLogEnabled() {
return this.cwLogEnabled;
}
/**
*
* The top-level internet domain name for which your application has administrative authority. *
* * @param domain * The top-level internet domain name for which your application has administrative authority. */ public void setDomain(String domain) { this.domain = domain; } /** ** The top-level internet domain name for which your application has administrative authority. *
* * @return The top-level internet domain name for which your application has administrative authority. */ public String getDomain() { return this.domain; } /** ** The top-level internet domain name for which your application has administrative authority. *
* * @param domain * The top-level internet domain name for which your application has administrative authority. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppMonitorRequest withDomain(String domain) { setDomain(domain); return this; } /** ** A name for the app monitor. *
* * @param name * A name for the app monitor. */ public void setName(String name) { this.name = name; } /** ** A name for the app monitor. *
* * @return A name for the app monitor. */ public String getName() { return this.name; } /** ** A name for the app monitor. *
* * @param name * A name for the app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppMonitorRequest withName(String name) { setName(name); return this; } /** ** Assigns one or more tags (key-value pairs) to the app monitor. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions by * granting a user permission to access or change only resources with certain tag values. *
** Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of * characters. *
** You can associate as many as 50 tags with an app monitor. *
** For more information, see Tagging Amazon * Web Services resources. *
* * @return Assigns one or more tags (key-value pairs) to the app monitor. ** Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
** Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of * characters. *
** You can associate as many as 50 tags with an app monitor. *
*
* For more information, see Tagging Amazon Web Services
* resources.
*/
public java.util.Map
* Assigns one or more tags (key-value pairs) to the app monitor.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by
* granting a user permission to access or change only resources with certain tag values.
*
* Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of
* characters.
*
* You can associate as many as 50 tags with an app monitor.
*
* For more information, see Tagging Amazon
* Web Services resources.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
** Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of * characters. *
** You can associate as many as 50 tags with an app monitor. *
*
* For more information, see Tagging
* Amazon Web Services resources.
*/
public void setTags(java.util.Map
* Assigns one or more tags (key-value pairs) to the app monitor.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by
* granting a user permission to access or change only resources with certain tag values.
*
* Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of
* characters.
*
* You can associate as many as 50 tags with an app monitor.
*
* For more information, see Tagging Amazon
* Web Services resources.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
** Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of * characters. *
** You can associate as many as 50 tags with an app monitor. *
*
* For more information, see Tagging
* Amazon Web Services resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppMonitorRequest withTags(java.util.Map