/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A RUM app monitor collects telemetry data from your application and sends that data to RUM. The data includes * performance and reliability information such as page load time, client-side errors, and user behavior. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AppMonitor implements Serializable, Cloneable, StructuredPojo { /** ** A structure that contains much of the configuration data for the app monitor. *
*/ private AppMonitorConfiguration appMonitorConfiguration; /** ** The date and time that this app monitor was created. *
*/ private String created; /** ** Specifies whether this app monitor allows the web client to define and send custom events. *
** For more information about custom events, see Send * custom events. *
*/ private CustomEvents customEvents; /** ** A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM * collects using CloudWatch Logs. *
*/ private DataStorage dataStorage; /** ** The top-level internet domain name for which your application has administrative authority. *
*/ private String domain; /** ** The unique ID of this app monitor. *
*/ private String id; /** ** The date and time of the most recent changes to this app monitor's configuration. *
*/ private String lastModified; /** ** The name of the app monitor. *
*/ private String name; /** ** The current state of the app monitor. *
*/ private String state; /** ** The list of tag keys and values associated with this app monitor. *
*/ private java.util.Map* A structure that contains much of the configuration data for the app monitor. *
* * @param appMonitorConfiguration * A structure that contains much of the configuration data for the app monitor. */ public void setAppMonitorConfiguration(AppMonitorConfiguration appMonitorConfiguration) { this.appMonitorConfiguration = appMonitorConfiguration; } /** ** A structure that contains much of the configuration data for the app monitor. *
* * @return A structure that contains much of the configuration data for the app monitor. */ public AppMonitorConfiguration getAppMonitorConfiguration() { return this.appMonitorConfiguration; } /** ** A structure that contains much of the configuration data for the app monitor. *
* * @param appMonitorConfiguration * A structure that contains much of the configuration data for the app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withAppMonitorConfiguration(AppMonitorConfiguration appMonitorConfiguration) { setAppMonitorConfiguration(appMonitorConfiguration); return this; } /** ** The date and time that this app monitor was created. *
* * @param created * The date and time that this app monitor was created. */ public void setCreated(String created) { this.created = created; } /** ** The date and time that this app monitor was created. *
* * @return The date and time that this app monitor was created. */ public String getCreated() { return this.created; } /** ** The date and time that this app monitor was created. *
* * @param created * The date and time that this app monitor was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withCreated(String created) { setCreated(created); return this; } /** ** Specifies whether this app monitor allows the web client to define and send custom events. *
** 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. ** 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. *
** 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. ** 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. *
** 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. ** 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 AppMonitor withCustomEvents(CustomEvents customEvents) { setCustomEvents(customEvents); return this; } /** *
* A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM * collects using CloudWatch Logs. *
* * @param dataStorage * A structure that contains information about whether this app monitor stores a copy of the telemetry data * that RUM collects using CloudWatch Logs. */ public void setDataStorage(DataStorage dataStorage) { this.dataStorage = dataStorage; } /** ** A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM * collects using CloudWatch Logs. *
* * @return A structure that contains information about whether this app monitor stores a copy of the telemetry data * that RUM collects using CloudWatch Logs. */ public DataStorage getDataStorage() { return this.dataStorage; } /** ** A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM * collects using CloudWatch Logs. *
* * @param dataStorage * A structure that contains information about whether this app monitor stores a copy of the telemetry data * that RUM collects using CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withDataStorage(DataStorage dataStorage) { setDataStorage(dataStorage); return this; } /** ** 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 AppMonitor withDomain(String domain) { setDomain(domain); return this; } /** ** The unique ID of this app monitor. *
* * @param id * The unique ID of this app monitor. */ public void setId(String id) { this.id = id; } /** ** The unique ID of this app monitor. *
* * @return The unique ID of this app monitor. */ public String getId() { return this.id; } /** ** The unique ID of this app monitor. *
* * @param id * The unique ID of this app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withId(String id) { setId(id); return this; } /** ** The date and time of the most recent changes to this app monitor's configuration. *
* * @param lastModified * The date and time of the most recent changes to this app monitor's configuration. */ public void setLastModified(String lastModified) { this.lastModified = lastModified; } /** ** The date and time of the most recent changes to this app monitor's configuration. *
* * @return The date and time of the most recent changes to this app monitor's configuration. */ public String getLastModified() { return this.lastModified; } /** ** The date and time of the most recent changes to this app monitor's configuration. *
* * @param lastModified * The date and time of the most recent changes to this app monitor's configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withLastModified(String lastModified) { setLastModified(lastModified); return this; } /** ** The name of the app monitor. *
* * @param name * The name of the app monitor. */ public void setName(String name) { this.name = name; } /** ** The name of the app monitor. *
* * @return The name of the app monitor. */ public String getName() { return this.name; } /** ** The name of the app monitor. *
* * @param name * The name of the app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withName(String name) { setName(name); return this; } /** ** The current state of the app monitor. *
* * @param state * The current state of the app monitor. * @see StateEnum */ public void setState(String state) { this.state = state; } /** ** The current state of the app monitor. *
* * @return The current state of the app monitor. * @see StateEnum */ public String getState() { return this.state; } /** ** The current state of the app monitor. *
* * @param state * The current state of the app monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see StateEnum */ public AppMonitor withState(String state) { setState(state); return this; } /** ** The current state of the app monitor. *
* * @param state * The current state of the app monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see StateEnum */ public AppMonitor withState(StateEnum state) { this.state = state.toString(); return this; } /** ** The list of tag keys and values associated with this app monitor. *
* * @return The list of tag keys and values associated with this app monitor. */ public java.util.Map* The list of tag keys and values associated with this app monitor. *
* * @param tags * The list of tag keys and values associated with this app monitor. */ public void setTags(java.util.Map* The list of tag keys and values associated with this app monitor. *
* * @param tags * The list of tag keys and values associated with this app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitor withTags(java.util.Map