/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class DescribeFleetMetricResult { public: AWS_IOT_API DescribeFleetMetricResult(); AWS_IOT_API DescribeFleetMetricResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API DescribeFleetMetricResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the fleet metric to describe.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the fleet metric to describe.

*/ inline void SetMetricName(const Aws::String& value) { m_metricName = value; } /** *

The name of the fleet metric to describe.

*/ inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); } /** *

The name of the fleet metric to describe.

*/ inline void SetMetricName(const char* value) { m_metricName.assign(value); } /** *

The name of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The search query string.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The search query string.

*/ inline void SetQueryString(const Aws::String& value) { m_queryString = value; } /** *

The search query string.

*/ inline void SetQueryString(Aws::String&& value) { m_queryString = std::move(value); } /** *

The search query string.

*/ inline void SetQueryString(const char* value) { m_queryString.assign(value); } /** *

The search query string.

*/ inline DescribeFleetMetricResult& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The search query string.

*/ inline DescribeFleetMetricResult& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The search query string.

*/ inline DescribeFleetMetricResult& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

The type of the aggregation query.

*/ inline const AggregationType& GetAggregationType() const{ return m_aggregationType; } /** *

The type of the aggregation query.

*/ inline void SetAggregationType(const AggregationType& value) { m_aggregationType = value; } /** *

The type of the aggregation query.

*/ inline void SetAggregationType(AggregationType&& value) { m_aggregationType = std::move(value); } /** *

The type of the aggregation query.

*/ inline DescribeFleetMetricResult& WithAggregationType(const AggregationType& value) { SetAggregationType(value); return *this;} /** *

The type of the aggregation query.

*/ inline DescribeFleetMetricResult& WithAggregationType(AggregationType&& value) { SetAggregationType(std::move(value)); return *this;} /** *

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 * day)] and must be multiple of 60.

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

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 * day)] and must be multiple of 60.

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

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 * day)] and must be multiple of 60.

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

The field to aggregate.

*/ inline const Aws::String& GetAggregationField() const{ return m_aggregationField; } /** *

The field to aggregate.

*/ inline void SetAggregationField(const Aws::String& value) { m_aggregationField = value; } /** *

The field to aggregate.

*/ inline void SetAggregationField(Aws::String&& value) { m_aggregationField = std::move(value); } /** *

The field to aggregate.

*/ inline void SetAggregationField(const char* value) { m_aggregationField.assign(value); } /** *

The field to aggregate.

*/ inline DescribeFleetMetricResult& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;} /** *

The field to aggregate.

*/ inline DescribeFleetMetricResult& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;} /** *

The field to aggregate.

*/ inline DescribeFleetMetricResult& WithAggregationField(const char* value) { SetAggregationField(value); return *this;} /** *

The fleet metric description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The fleet metric description.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The fleet metric description.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The fleet metric description.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The fleet metric description.

*/ inline DescribeFleetMetricResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The fleet metric description.

*/ inline DescribeFleetMetricResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The fleet metric description.

*/ inline DescribeFleetMetricResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The query version.

*/ inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; } /** *

The query version.

*/ inline void SetQueryVersion(const Aws::String& value) { m_queryVersion = value; } /** *

The query version.

*/ inline void SetQueryVersion(Aws::String&& value) { m_queryVersion = std::move(value); } /** *

The query version.

*/ inline void SetQueryVersion(const char* value) { m_queryVersion.assign(value); } /** *

The query version.

*/ inline DescribeFleetMetricResult& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;} /** *

The query version.

*/ inline DescribeFleetMetricResult& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;} /** *

The query version.

*/ inline DescribeFleetMetricResult& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;} /** *

The name of the index to search.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the index to search.

*/ inline void SetIndexName(const Aws::String& value) { m_indexName = value; } /** *

The name of the index to search.

*/ inline void SetIndexName(Aws::String&& value) { m_indexName = std::move(value); } /** *

The name of the index to search.

*/ inline void SetIndexName(const char* value) { m_indexName.assign(value); } /** *

The name of the index to search.

*/ inline DescribeFleetMetricResult& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the index to search.

*/ inline DescribeFleetMetricResult& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the index to search.

*/ inline DescribeFleetMetricResult& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The date when the fleet metric is created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date when the fleet metric is created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

The date when the fleet metric is created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } /** *

The date when the fleet metric is created.

*/ inline DescribeFleetMetricResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date when the fleet metric is created.

*/ inline DescribeFleetMetricResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date when the fleet metric is last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date when the fleet metric is last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } /** *

The date when the fleet metric is last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } /** *

The date when the fleet metric is last modified.

*/ inline DescribeFleetMetricResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The date when the fleet metric is last modified.

*/ inline DescribeFleetMetricResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

Used to support unit transformation such as milliseconds to seconds. The unit * must be supported by CW * metric.

*/ inline const FleetMetricUnit& GetUnit() const{ return m_unit; } /** *

Used to support unit transformation such as milliseconds to seconds. The unit * must be supported by CW * metric.

*/ inline void SetUnit(const FleetMetricUnit& value) { m_unit = value; } /** *

Used to support unit transformation such as milliseconds to seconds. The unit * must be supported by CW * metric.

*/ inline void SetUnit(FleetMetricUnit&& value) { m_unit = std::move(value); } /** *

Used to support unit transformation such as milliseconds to seconds. The unit * must be supported by CW * metric.

*/ inline DescribeFleetMetricResult& WithUnit(const FleetMetricUnit& value) { SetUnit(value); return *this;} /** *

Used to support unit transformation such as milliseconds to seconds. The unit * must be supported by CW * metric.

*/ inline DescribeFleetMetricResult& WithUnit(FleetMetricUnit&& value) { SetUnit(std::move(value)); return *this;} /** *

The version of the fleet metric.

*/ inline long long GetVersion() const{ return m_version; } /** *

The version of the fleet metric.

*/ inline void SetVersion(long long value) { m_version = value; } /** *

The version of the fleet metric.

*/ inline DescribeFleetMetricResult& WithVersion(long long value) { SetVersion(value); return *this;} /** *

The ARN of the fleet metric to describe.

*/ inline const Aws::String& GetMetricArn() const{ return m_metricArn; } /** *

The ARN of the fleet metric to describe.

*/ inline void SetMetricArn(const Aws::String& value) { m_metricArn = value; } /** *

The ARN of the fleet metric to describe.

*/ inline void SetMetricArn(Aws::String&& value) { m_metricArn = std::move(value); } /** *

The ARN of the fleet metric to describe.

*/ inline void SetMetricArn(const char* value) { m_metricArn.assign(value); } /** *

The ARN of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;} /** *

The ARN of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;} /** *

The ARN of the fleet metric to describe.

*/ inline DescribeFleetMetricResult& WithMetricArn(const char* value) { SetMetricArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeFleetMetricResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeFleetMetricResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeFleetMetricResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_metricName; Aws::String m_queryString; AggregationType m_aggregationType; int m_period; Aws::String m_aggregationField; Aws::String m_description; Aws::String m_queryVersion; Aws::String m_indexName; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_lastModifiedDate; FleetMetricUnit m_unit; long long m_version; Aws::String m_metricArn; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws