/** * 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 namespace Aws { namespace Http { class URI; } //namespace Http namespace IoTSiteWise { namespace Model { /** */ class GetAssetPropertyValueHistoryRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API GetAssetPropertyValueHistoryRequest(); // 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 "GetAssetPropertyValueHistory"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; AWS_IOTSITEWISE_API 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 GetAssetPropertyValueHistoryRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *

The ID of the asset.

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

The ID of the asset.

*/ inline GetAssetPropertyValueHistoryRequest& 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 GetAssetPropertyValueHistoryRequest& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;} /** *

The ID of the asset property.

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

The ID of the asset property.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

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

The 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 IoT SiteWise User * Guide.

*/ inline GetAssetPropertyValueHistoryRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(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 GetAssetPropertyValueHistoryRequest& 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 GetAssetPropertyValueHistoryRequest& 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 GetAssetPropertyValueHistoryRequest& 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 GetAssetPropertyValueHistoryRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(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 GetAssetPropertyValueHistoryRequest& WithQualities(const Aws::Vector& value) { SetQualities(value); return *this;} /** *

The quality by which to filter asset data.

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

The quality by which to filter asset data.

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

The quality by which to filter asset data.

*/ inline GetAssetPropertyValueHistoryRequest& AddQualities(Quality&& value) { m_qualitiesHasBeenSet = true; m_qualities.push_back(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 GetAssetPropertyValueHistoryRequest& WithTimeOrdering(const TimeOrdering& value) { SetTimeOrdering(value); return *this;} /** *

The chronological sorting order of the requested information.

Default: * ASCENDING

*/ inline GetAssetPropertyValueHistoryRequest& 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 GetAssetPropertyValueHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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

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

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

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

The maximum number of results to return for each paginated request. A result * set is returned in the two cases, whichever occurs first.

  • The * size of the result set is equal to 4 MB.

  • The number of data * points in the result set is equal to the value of maxResults. The * maximum value of maxResults is 20000.

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

The maximum number of results to return for each paginated request. A result * set is returned in the two cases, whichever occurs first.

  • The * size of the result set is equal to 4 MB.

  • The number of data * points in the result set is equal to the value of maxResults. The * maximum value of maxResults is 20000.

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

The maximum number of results to return for each paginated request. A result * set is returned in the two cases, whichever occurs first.

  • The * size of the result set is equal to 4 MB.

  • The number of data * points in the result set is equal to the value of maxResults. The * maximum value of maxResults is 20000.

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

The maximum number of results to return for each paginated request. A result * set is returned in the two cases, whichever occurs first.

  • The * size of the result set is equal to 4 MB.

  • The number of data * points in the result set is equal to the value of maxResults. The * maximum value of maxResults is 20000.

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