/* * 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.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object containing the results for the session metrics you requested and the bin and/or group(s) they refer to, if * applicable. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnalyticsSessionResult implements Serializable, Cloneable, StructuredPojo { /** ** A list of objects containing the criteria you requested for binning results and the values of the bins. *
*/ private java.util.List* A list of objects containing the criteria you requested for grouping results and the values of the bins. *
*/ private java.util.List* A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to * return, and the method by which to organize the results. *
*/ private java.util.List* A list of objects containing the criteria you requested for binning results and the values of the bins. *
* * @return A list of objects containing the criteria you requested for binning results and the values of the bins. */ public java.util.List* A list of objects containing the criteria you requested for binning results and the values of the bins. *
* * @param binKeys * A list of objects containing the criteria you requested for binning results and the values of the bins. */ public void setBinKeys(java.util.Collection* A list of objects containing the criteria you requested for binning results and the values of the bins. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBinKeys(java.util.Collection)} or {@link #withBinKeys(java.util.Collection)} if you want to override * the existing values. *
* * @param binKeys * A list of objects containing the criteria you requested for binning results and the values of the bins. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withBinKeys(AnalyticsBinKey... binKeys) { if (this.binKeys == null) { setBinKeys(new java.util.ArrayList* A list of objects containing the criteria you requested for binning results and the values of the bins. *
* * @param binKeys * A list of objects containing the criteria you requested for binning results and the values of the bins. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withBinKeys(java.util.Collection* A list of objects containing the criteria you requested for grouping results and the values of the bins. *
* * @return A list of objects containing the criteria you requested for grouping results and the values of the bins. */ public java.util.List* A list of objects containing the criteria you requested for grouping results and the values of the bins. *
* * @param groupByKeys * A list of objects containing the criteria you requested for grouping results and the values of the bins. */ public void setGroupByKeys(java.util.Collection* A list of objects containing the criteria you requested for grouping results and the values of the bins. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroupByKeys(java.util.Collection)} or {@link #withGroupByKeys(java.util.Collection)} if you want to * override the existing values. *
* * @param groupByKeys * A list of objects containing the criteria you requested for grouping results and the values of the bins. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withGroupByKeys(AnalyticsSessionGroupByKey... groupByKeys) { if (this.groupByKeys == null) { setGroupByKeys(new java.util.ArrayList* A list of objects containing the criteria you requested for grouping results and the values of the bins. *
* * @param groupByKeys * A list of objects containing the criteria you requested for grouping results and the values of the bins. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withGroupByKeys(java.util.Collection* A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to * return, and the method by which to organize the results. *
* * @return A list of objects, each of which contains a metric you want to list, the statistic for the metric you * want to return, and the method by which to organize the results. */ public java.util.List* A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to * return, and the method by which to organize the results. *
* * @param metricsResults * A list of objects, each of which contains a metric you want to list, the statistic for the metric you want * to return, and the method by which to organize the results. */ public void setMetricsResults(java.util.Collection* A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to * return, and the method by which to organize the results. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricsResults(java.util.Collection)} or {@link #withMetricsResults(java.util.Collection)} if you want * to override the existing values. *
* * @param metricsResults * A list of objects, each of which contains a metric you want to list, the statistic for the metric you want * to return, and the method by which to organize the results. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withMetricsResults(AnalyticsSessionMetricResult... metricsResults) { if (this.metricsResults == null) { setMetricsResults(new java.util.ArrayList* A list of objects, each of which contains a metric you want to list, the statistic for the metric you want to * return, and the method by which to organize the results. *
* * @param metricsResults * A list of objects, each of which contains a metric you want to list, the statistic for the metric you want * to return, and the method by which to organize the results. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalyticsSessionResult withMetricsResults(java.util.Collection