/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace CloudWatchEvidently { namespace Model { /** */ class GetExperimentResultsRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API GetExperimentResultsRequest(); // 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 "GetExperimentResults"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline const ExperimentBaseStat& GetBaseStat() const{ return m_baseStat; } /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline bool BaseStatHasBeenSet() const { return m_baseStatHasBeenSet; } /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline void SetBaseStat(const ExperimentBaseStat& value) { m_baseStatHasBeenSet = true; m_baseStat = value; } /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline void SetBaseStat(ExperimentBaseStat&& value) { m_baseStatHasBeenSet = true; m_baseStat = std::move(value); } /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline GetExperimentResultsRequest& WithBaseStat(const ExperimentBaseStat& value) { SetBaseStat(value); return *this;} /** *

The statistic used to calculate experiment results. Currently the only valid * value is mean, which uses the mean of the collected values as the * statistic.

*/ inline GetExperimentResultsRequest& WithBaseStat(ExperimentBaseStat&& value) { SetBaseStat(std::move(value)); return *this;} /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline GetExperimentResultsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The date and time that the experiment ended, if it is completed. This must be * no longer than 30 days after the experiment start time.

*/ inline GetExperimentResultsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The name of the experiment to retrieve the results of.

*/ inline const Aws::String& GetExperiment() const{ return m_experiment; } /** *

The name of the experiment to retrieve the results of.

*/ inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; } /** *

The name of the experiment to retrieve the results of.

*/ inline void SetExperiment(const Aws::String& value) { m_experimentHasBeenSet = true; m_experiment = value; } /** *

The name of the experiment to retrieve the results of.

*/ inline void SetExperiment(Aws::String&& value) { m_experimentHasBeenSet = true; m_experiment = std::move(value); } /** *

The name of the experiment to retrieve the results of.

*/ inline void SetExperiment(const char* value) { m_experimentHasBeenSet = true; m_experiment.assign(value); } /** *

The name of the experiment to retrieve the results of.

*/ inline GetExperimentResultsRequest& WithExperiment(const Aws::String& value) { SetExperiment(value); return *this;} /** *

The name of the experiment to retrieve the results of.

*/ inline GetExperimentResultsRequest& WithExperiment(Aws::String&& value) { SetExperiment(std::move(value)); return *this;} /** *

The name of the experiment to retrieve the results of.

*/ inline GetExperimentResultsRequest& WithExperiment(const char* value) { SetExperiment(value); return *this;} /** *

The names of the experiment metrics that you want to see the results of.

*/ inline const Aws::Vector& GetMetricNames() const{ return m_metricNames; } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline void SetMetricNames(const Aws::Vector& value) { m_metricNamesHasBeenSet = true; m_metricNames = value; } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline void SetMetricNames(Aws::Vector&& value) { m_metricNamesHasBeenSet = true; m_metricNames = std::move(value); } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline GetExperimentResultsRequest& WithMetricNames(const Aws::Vector& value) { SetMetricNames(value); return *this;} /** *

The names of the experiment metrics that you want to see the results of.

*/ inline GetExperimentResultsRequest& WithMetricNames(Aws::Vector&& value) { SetMetricNames(std::move(value)); return *this;} /** *

The names of the experiment metrics that you want to see the results of.

*/ inline GetExperimentResultsRequest& AddMetricNames(const Aws::String& value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(value); return *this; } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline GetExperimentResultsRequest& AddMetricNames(Aws::String&& value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(std::move(value)); return *this; } /** *

The names of the experiment metrics that you want to see the results of.

*/ inline GetExperimentResultsRequest& AddMetricNames(const char* value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(value); return *this; } /** *

In seconds, the amount of time to aggregate results together.

*/ inline long long GetPeriod() const{ return m_period; } /** *

In seconds, the amount of time to aggregate results together.

*/ inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; } /** *

In seconds, the amount of time to aggregate results together.

*/ inline void SetPeriod(long long value) { m_periodHasBeenSet = true; m_period = value; } /** *

In seconds, the amount of time to aggregate results together.

*/ inline GetExperimentResultsRequest& WithPeriod(long long value) { SetPeriod(value); return *this;} /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline const Aws::String& GetProject() const{ return m_project; } /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; } /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); } /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline GetExperimentResultsRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline GetExperimentResultsRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;} /** *

The name or ARN of the project that contains the experiment that you want to * see the results of.

*/ inline GetExperimentResultsRequest& WithProject(const char* value) { SetProject(value); return *this;} /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline const Aws::Vector& GetReportNames() const{ return m_reportNames; } /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline bool ReportNamesHasBeenSet() const { return m_reportNamesHasBeenSet; } /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline void SetReportNames(const Aws::Vector& value) { m_reportNamesHasBeenSet = true; m_reportNames = value; } /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline void SetReportNames(Aws::Vector&& value) { m_reportNamesHasBeenSet = true; m_reportNames = std::move(value); } /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline GetExperimentResultsRequest& WithReportNames(const Aws::Vector& value) { SetReportNames(value); return *this;} /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline GetExperimentResultsRequest& WithReportNames(Aws::Vector&& value) { SetReportNames(std::move(value)); return *this;} /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline GetExperimentResultsRequest& AddReportNames(const ExperimentReportName& value) { m_reportNamesHasBeenSet = true; m_reportNames.push_back(value); return *this; } /** *

The names of the report types that you want to see. Currently, * BayesianInference is the only valid value.

*/ inline GetExperimentResultsRequest& AddReportNames(ExperimentReportName&& value) { m_reportNamesHasBeenSet = true; m_reportNames.push_back(std::move(value)); return *this; } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline const Aws::Vector& GetResultStats() const{ return m_resultStats; } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline bool ResultStatsHasBeenSet() const { return m_resultStatsHasBeenSet; } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline void SetResultStats(const Aws::Vector& value) { m_resultStatsHasBeenSet = true; m_resultStats = value; } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline void SetResultStats(Aws::Vector&& value) { m_resultStatsHasBeenSet = true; m_resultStats = std::move(value); } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline GetExperimentResultsRequest& WithResultStats(const Aws::Vector& value) { SetResultStats(value); return *this;} /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline GetExperimentResultsRequest& WithResultStats(Aws::Vector&& value) { SetResultStats(std::move(value)); return *this;} /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline GetExperimentResultsRequest& AddResultStats(const ExperimentResultRequestType& value) { m_resultStatsHasBeenSet = true; m_resultStats.push_back(value); return *this; } /** *

The statistics that you want to see in the returned results.

  • *

    PValue specifies to use p-values for the results. A p-value is * used in hypothesis testing to measure how often you are willing to make a * mistake in rejecting the null hypothesis. A general practice is to reject the * null hypothesis and declare that the results are statistically significant when * the p-value is less than 0.05.

  • * ConfidenceInterval specifies a confidence interval for the results. * The confidence interval represents the range of values for the chosen metric * that is likely to contain the true difference between the baseStat * of a variation and the baseline. Evidently returns the 95% confidence interval. *

  • TreatmentEffect is the difference in the * statistic specified by the baseStat parameter between each * variation and the default variation.

  • BaseStat * returns the statistical values collected for the metric for each variation. The * statistic uses the same statistic specified in the baseStat * parameter. Therefore, if baseStat is mean, this * returns the mean of the values collected for each variation.

*/ inline GetExperimentResultsRequest& AddResultStats(ExperimentResultRequestType&& value) { m_resultStatsHasBeenSet = true; m_resultStats.push_back(std::move(value)); return *this; } /** *

The date and time that the experiment started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The date and time that the experiment started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The date and time that the experiment started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The date and time that the experiment started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The date and time that the experiment started.

*/ inline GetExperimentResultsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The date and time that the experiment started.

*/ inline GetExperimentResultsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline const Aws::Vector& GetTreatmentNames() const{ return m_treatmentNames; } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline bool TreatmentNamesHasBeenSet() const { return m_treatmentNamesHasBeenSet; } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline void SetTreatmentNames(const Aws::Vector& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames = value; } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline void SetTreatmentNames(Aws::Vector&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames = std::move(value); } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline GetExperimentResultsRequest& WithTreatmentNames(const Aws::Vector& value) { SetTreatmentNames(value); return *this;} /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline GetExperimentResultsRequest& WithTreatmentNames(Aws::Vector&& value) { SetTreatmentNames(std::move(value)); return *this;} /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline GetExperimentResultsRequest& AddTreatmentNames(const Aws::String& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(value); return *this; } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline GetExperimentResultsRequest& AddTreatmentNames(Aws::String&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(std::move(value)); return *this; } /** *

The names of the experiment treatments that you want to see the results * for.

*/ inline GetExperimentResultsRequest& AddTreatmentNames(const char* value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(value); return *this; } private: ExperimentBaseStat m_baseStat; bool m_baseStatHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_experiment; bool m_experimentHasBeenSet = false; Aws::Vector m_metricNames; bool m_metricNamesHasBeenSet = false; long long m_period; bool m_periodHasBeenSet = false; Aws::String m_project; bool m_projectHasBeenSet = false; Aws::Vector m_reportNames; bool m_reportNamesHasBeenSet = false; Aws::Vector m_resultStats; bool m_resultStatsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Vector m_treatmentNames; bool m_treatmentNamesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws