/** * 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 Http { class URI; } //namespace Http namespace IoTSiteWise { namespace Model { /** */ class AWS_IOTSITEWISE_API GetAssetPropertyAggregatesRequest : public IoTSiteWiseRequest { public: GetAssetPropertyAggregatesRequest(); // 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 "GetAssetPropertyAggregates"; } Aws::String SerializePayload() const override; void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the asset.

*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *

The ID of the asset.

*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *

The ID of the asset.

*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *

The ID of the asset.

*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *

The ID of the asset.

*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *

The ID of the asset.

*/ inline GetAssetPropertyAggregatesRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *

The ID of the asset.

*/ inline GetAssetPropertyAggregatesRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *

The ID of the asset.

*/ inline GetAssetPropertyAggregatesRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *

The ID of the asset property.

*/ inline const Aws::String& GetPropertyId() const{ return m_propertyId; } /** *

The ID of the asset property.

*/ inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; } /** *

The ID of the asset property.

*/ inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; } /** *

The ID of the asset property.

*/ inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); } /** *

The ID of the asset property.

*/ inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); } /** *

The ID of the asset property.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;} /** *

The ID of the asset property.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;} /** *

The ID of the asset property.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyId(const char* value) { SetPropertyId(value); return *this;} /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; } /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; } /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; } /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); } /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); } /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;} /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;} /** *

The property alias that identifies the property, such as an OPC-UA server * data stream path (for example, * /company/windfarm/3/turbine/7/temperature). For more information, * see Mapping * industrial data streams to asset properties in the AWS IoT SiteWise User * Guide.

*/ inline GetAssetPropertyAggregatesRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;} /** *

The data aggregating function.

*/ inline const Aws::Vector& GetAggregateTypes() const{ return m_aggregateTypes; } /** *

The data aggregating function.

*/ inline bool AggregateTypesHasBeenSet() const { return m_aggregateTypesHasBeenSet; } /** *

The data aggregating function.

*/ inline void SetAggregateTypes(const Aws::Vector& value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes = value; } /** *

The data aggregating function.

*/ inline void SetAggregateTypes(Aws::Vector&& value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes = std::move(value); } /** *

The data aggregating function.

*/ inline GetAssetPropertyAggregatesRequest& WithAggregateTypes(const Aws::Vector& value) { SetAggregateTypes(value); return *this;} /** *

The data aggregating function.

*/ inline GetAssetPropertyAggregatesRequest& WithAggregateTypes(Aws::Vector&& value) { SetAggregateTypes(std::move(value)); return *this;} /** *

The data aggregating function.

*/ inline GetAssetPropertyAggregatesRequest& AddAggregateTypes(const AggregateType& value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes.push_back(value); return *this; } /** *

The data aggregating function.

*/ inline GetAssetPropertyAggregatesRequest& AddAggregateTypes(AggregateType&& value) { m_aggregateTypesHasBeenSet = true; m_aggregateTypes.push_back(std::move(value)); return *this; } /** *

The time interval over which to aggregate data.

*/ inline const Aws::String& GetResolution() const{ return m_resolution; } /** *

The time interval over which to aggregate data.

*/ inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; } /** *

The time interval over which to aggregate data.

*/ inline void SetResolution(const Aws::String& value) { m_resolutionHasBeenSet = true; m_resolution = value; } /** *

The time interval over which to aggregate data.

*/ inline void SetResolution(Aws::String&& value) { m_resolutionHasBeenSet = true; m_resolution = std::move(value); } /** *

The time interval over which to aggregate data.

*/ inline void SetResolution(const char* value) { m_resolutionHasBeenSet = true; m_resolution.assign(value); } /** *

The time interval over which to aggregate data.

*/ inline GetAssetPropertyAggregatesRequest& WithResolution(const Aws::String& value) { SetResolution(value); return *this;} /** *

The time interval over which to aggregate data.

*/ inline GetAssetPropertyAggregatesRequest& WithResolution(Aws::String&& value) { SetResolution(std::move(value)); return *this;} /** *

The time interval over which to aggregate data.

*/ inline GetAssetPropertyAggregatesRequest& WithResolution(const char* value) { SetResolution(value); return *this;} /** *

The quality by which to filter asset data.

*/ inline const Aws::Vector& GetQualities() const{ return m_qualities; } /** *

The quality by which to filter asset data.

*/ inline bool QualitiesHasBeenSet() const { return m_qualitiesHasBeenSet; } /** *

The quality by which to filter asset data.

*/ inline void SetQualities(const Aws::Vector& value) { m_qualitiesHasBeenSet = true; m_qualities = value; } /** *

The quality by which to filter asset data.

*/ inline void SetQualities(Aws::Vector&& value) { m_qualitiesHasBeenSet = true; m_qualities = std::move(value); } /** *

The quality by which to filter asset data.

*/ inline GetAssetPropertyAggregatesRequest& WithQualities(const Aws::Vector& value) { SetQualities(value); return *this;} /** *

The quality by which to filter asset data.

*/ inline GetAssetPropertyAggregatesRequest& WithQualities(Aws::Vector&& value) { SetQualities(std::move(value)); return *this;} /** *

The quality by which to filter asset data.

*/ inline GetAssetPropertyAggregatesRequest& AddQualities(const Quality& value) { m_qualitiesHasBeenSet = true; m_qualities.push_back(value); return *this; } /** *

The quality by which to filter asset data.

*/ inline GetAssetPropertyAggregatesRequest& AddQualities(Quality&& value) { m_qualitiesHasBeenSet = true; m_qualities.push_back(std::move(value)); return *this; } /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; } /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; } /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline GetAssetPropertyAggregatesRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;} /** *

The exclusive start of the range from which to query historical data, * expressed in seconds in Unix epoch time.

*/ inline GetAssetPropertyAggregatesRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;} /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; } /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; } /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; } /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); } /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline GetAssetPropertyAggregatesRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;} /** *

The inclusive end of the range from which to query historical data, expressed * in seconds in Unix epoch time.

*/ inline GetAssetPropertyAggregatesRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;} /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline const TimeOrdering& GetTimeOrdering() const{ return m_timeOrdering; } /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline bool TimeOrderingHasBeenSet() const { return m_timeOrderingHasBeenSet; } /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline void SetTimeOrdering(const TimeOrdering& value) { m_timeOrderingHasBeenSet = true; m_timeOrdering = value; } /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline void SetTimeOrdering(TimeOrdering&& value) { m_timeOrderingHasBeenSet = true; m_timeOrdering = std::move(value); } /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline GetAssetPropertyAggregatesRequest& WithTimeOrdering(const TimeOrdering& value) { SetTimeOrdering(value); return *this;} /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline GetAssetPropertyAggregatesRequest& WithTimeOrdering(TimeOrdering&& value) { SetTimeOrdering(std::move(value)); return *this;} /** *

The token to be used for the next set of paginated results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to be used for the next set of paginated results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to be used for the next set of paginated results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to be used for the next set of paginated results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to be used for the next set of paginated results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to be used for the next set of paginated results.

*/ inline GetAssetPropertyAggregatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to be used for the next set of paginated results.

*/ inline GetAssetPropertyAggregatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to be used for the next set of paginated results.

*/ inline GetAssetPropertyAggregatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to be returned per paginated request.

*

Default: 100

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to be returned per paginated request.

*

Default: 100

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to be returned per paginated request.

*

Default: 100

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to be returned per paginated request.

*

Default: 100

*/ inline GetAssetPropertyAggregatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_assetId; bool m_assetIdHasBeenSet; Aws::String m_propertyId; bool m_propertyIdHasBeenSet; Aws::String m_propertyAlias; bool m_propertyAliasHasBeenSet; Aws::Vector m_aggregateTypes; bool m_aggregateTypesHasBeenSet; Aws::String m_resolution; bool m_resolutionHasBeenSet; Aws::Vector m_qualities; bool m_qualitiesHasBeenSet; Aws::Utils::DateTime m_startDate; bool m_startDateHasBeenSet; Aws::Utils::DateTime m_endDate; bool m_endDateHasBeenSet; TimeOrdering m_timeOrdering; bool m_timeOrderingHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws