/** * 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 namespace Aws { namespace ComputeOptimizer { namespace Model { /** */ class GetEC2RecommendationProjectedMetricsRequest : public ComputeOptimizerRequest { public: AWS_COMPUTEOPTIMIZER_API GetEC2RecommendationProjectedMetricsRequest(); // 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 "GetEC2RecommendationProjectedMetrics"; } AWS_COMPUTEOPTIMIZER_API Aws::String SerializePayload() const override; AWS_COMPUTEOPTIMIZER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; } /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; } /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the instances for which to return * recommendation projected metrics.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;} /** *

The statistic of the projected metrics.

*/ inline const MetricStatistic& GetStat() const{ return m_stat; } /** *

The statistic of the projected metrics.

*/ inline bool StatHasBeenSet() const { return m_statHasBeenSet; } /** *

The statistic of the projected metrics.

*/ inline void SetStat(const MetricStatistic& value) { m_statHasBeenSet = true; m_stat = value; } /** *

The statistic of the projected metrics.

*/ inline void SetStat(MetricStatistic&& value) { m_statHasBeenSet = true; m_stat = std::move(value); } /** *

The statistic of the projected metrics.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithStat(const MetricStatistic& value) { SetStat(value); return *this;} /** *

The statistic of the projected metrics.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithStat(MetricStatistic&& value) { SetStat(std::move(value)); return *this;} /** *

The granularity, in seconds, of the projected metrics data points.

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

The granularity, in seconds, of the projected metrics data points.

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

The granularity, in seconds, of the projected metrics data points.

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

The granularity, in seconds, of the projected metrics data points.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithPeriod(int value) { SetPeriod(value); return *this;} /** *

The timestamp of the first projected metrics data point to return.

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

The timestamp of the first projected metrics data point to return.

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

The timestamp of the first projected metrics data point to return.

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

The timestamp of the first projected metrics data point to return.

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

The timestamp of the first projected metrics data point to return.

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

The timestamp of the first projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

The timestamp of the last projected metrics data point to return.

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

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline const RecommendationPreferences& GetRecommendationPreferences() const{ return m_recommendationPreferences; } /** *

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline bool RecommendationPreferencesHasBeenSet() const { return m_recommendationPreferencesHasBeenSet; } /** *

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline void SetRecommendationPreferences(const RecommendationPreferences& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = value; } /** *

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline void SetRecommendationPreferences(RecommendationPreferences&& value) { m_recommendationPreferencesHasBeenSet = true; m_recommendationPreferences = std::move(value); } /** *

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithRecommendationPreferences(const RecommendationPreferences& value) { SetRecommendationPreferences(value); return *this;} /** *

An object to specify the preferences for the Amazon EC2 recommendation * projected metrics to return in the response.

*/ inline GetEC2RecommendationProjectedMetricsRequest& WithRecommendationPreferences(RecommendationPreferences&& value) { SetRecommendationPreferences(std::move(value)); return *this;} private: Aws::String m_instanceArn; bool m_instanceArnHasBeenSet = false; MetricStatistic m_stat; bool m_statHasBeenSet = false; int m_period; bool m_periodHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; RecommendationPreferences m_recommendationPreferences; bool m_recommendationPreferencesHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws