/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class EnableAwsNetworkPerformanceMetricSubscriptionRequest : public EC2Request { public: AWS_EC2_API EnableAwsNetworkPerformanceMetricSubscriptionRequest(); // 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 "EnableAwsNetworkPerformanceMetricSubscription"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source Region or Availability Zone that the metric subscription is * enabled for. For example, us-east-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithSource(const char* value) { SetSource(value); return *this;} /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;} /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;} /** *

The target Region or Availability Zone that the metric subscription is * enabled for. For example, eu-west-1.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithDestination(const char* value) { SetDestination(value); return *this;} /** *

The metric used for the enabled subscription.

*/ inline const MetricType& GetMetric() const{ return m_metric; } /** *

The metric used for the enabled subscription.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

The metric used for the enabled subscription.

*/ inline void SetMetric(const MetricType& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

The metric used for the enabled subscription.

*/ inline void SetMetric(MetricType&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

The metric used for the enabled subscription.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithMetric(const MetricType& value) { SetMetric(value); return *this;} /** *

The metric used for the enabled subscription.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithMetric(MetricType&& value) { SetMetric(std::move(value)); return *this;} /** *

The statistic used for the enabled subscription.

*/ inline const StatisticType& GetStatistic() const{ return m_statistic; } /** *

The statistic used for the enabled subscription.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

The statistic used for the enabled subscription.

*/ inline void SetStatistic(const StatisticType& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

The statistic used for the enabled subscription.

*/ inline void SetStatistic(StatisticType&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

The statistic used for the enabled subscription.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithStatistic(const StatisticType& value) { SetStatistic(value); return *this;} /** *

The statistic used for the enabled subscription.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithStatistic(StatisticType&& value) { SetStatistic(std::move(value)); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline EnableAwsNetworkPerformanceMetricSubscriptionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_destination; bool m_destinationHasBeenSet = false; MetricType m_metric; bool m_metricHasBeenSet = false; StatisticType m_statistic; bool m_statisticHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws