/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iotsitewise.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetAssetPropertyValueHistoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the asset. *
*/ private String assetId; /** ** The ID of the asset property. *
*/ private String propertyId; /** *
* 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.
*
* The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time. *
*/ private java.util.Date startDate; /** ** The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time. *
*/ private java.util.Date endDate; /** ** The quality by which to filter asset data. *
*/ private java.util.List* The chronological sorting order of the requested information. *
*
* Default: ASCENDING
*
* The token to be used for the next set of paginated results. *
*/ private String nextToken; /** ** 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.
*
* The ID of the asset. *
* * @param assetId * The ID of the asset. */ public void setAssetId(String assetId) { this.assetId = assetId; } /** ** The ID of the asset. *
* * @return The ID of the asset. */ public String getAssetId() { return this.assetId; } /** ** The ID of the asset. *
* * @param assetId * The ID of the asset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssetPropertyValueHistoryRequest withAssetId(String assetId) { setAssetId(assetId); return this; } /** ** The ID of the asset property. *
* * @param propertyId * The ID of the asset property. */ public void setPropertyId(String propertyId) { this.propertyId = propertyId; } /** ** The ID of the asset property. *
* * @return The ID of the asset property. */ public String getPropertyId() { return this.propertyId; } /** ** The ID of the asset property. *
* * @param propertyId * The ID of the asset property. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssetPropertyValueHistoryRequest withPropertyId(String propertyId) { setPropertyId(propertyId); 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.
*
/company/windfarm/3/turbine/7/temperature
). For more information, see Mapping
* industrial data streams to asset properties in the IoT SiteWise User Guide.
*/
public void setPropertyAlias(String propertyAlias) {
this.propertyAlias = 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.
*
/company/windfarm/3/turbine/7/temperature
). For more information, see Mapping
* industrial data streams to asset properties in the IoT SiteWise User Guide.
*/
public String getPropertyAlias() {
return this.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.
*
/company/windfarm/3/turbine/7/temperature
). For more information, see Mapping
* industrial data streams to asset properties in the IoT SiteWise User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAssetPropertyValueHistoryRequest withPropertyAlias(String propertyAlias) {
setPropertyAlias(propertyAlias);
return this;
}
/**
* * The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @param startDate * The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch * time. */ public void setStartDate(java.util.Date startDate) { this.startDate = startDate; } /** ** The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @return The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch * time. */ public java.util.Date getStartDate() { return this.startDate; } /** ** The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @param startDate * The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch * time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssetPropertyValueHistoryRequest withStartDate(java.util.Date startDate) { setStartDate(startDate); return this; } /** ** The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @param endDate * The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch * time. */ public void setEndDate(java.util.Date endDate) { this.endDate = endDate; } /** ** The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @return The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch * time. */ public java.util.Date getEndDate() { return this.endDate; } /** ** The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time. *
* * @param endDate * The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch * time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssetPropertyValueHistoryRequest withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; } /** ** The quality by which to filter asset data. *
* * @return The quality by which to filter asset data. * @see Quality */ public java.util.List* The quality by which to filter asset data. *
* * @param qualities * The quality by which to filter asset data. * @see Quality */ public void setQualities(java.util.Collection* The quality by which to filter asset data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setQualities(java.util.Collection)} or {@link #withQualities(java.util.Collection)} if you want to * override the existing values. *
* * @param qualities * The quality by which to filter asset data. * @return Returns a reference to this object so that method calls can be chained together. * @see Quality */ public GetAssetPropertyValueHistoryRequest withQualities(String... qualities) { if (this.qualities == null) { setQualities(new java.util.ArrayList* The quality by which to filter asset data. *
* * @param qualities * The quality by which to filter asset data. * @return Returns a reference to this object so that method calls can be chained together. * @see Quality */ public GetAssetPropertyValueHistoryRequest withQualities(java.util.Collection* The quality by which to filter asset data. *
* * @param qualities * The quality by which to filter asset data. * @return Returns a reference to this object so that method calls can be chained together. * @see Quality */ public GetAssetPropertyValueHistoryRequest withQualities(Quality... qualities) { java.util.ArrayList* The chronological sorting order of the requested information. *
*
* Default: ASCENDING
*
* Default: ASCENDING
* @see TimeOrdering
*/
public void setTimeOrdering(String timeOrdering) {
this.timeOrdering = timeOrdering;
}
/**
*
* The chronological sorting order of the requested information. *
*
* Default: ASCENDING
*
* Default: ASCENDING
* @see TimeOrdering
*/
public String getTimeOrdering() {
return this.timeOrdering;
}
/**
*
* The chronological sorting order of the requested information. *
*
* Default: ASCENDING
*
* Default: ASCENDING
* @return Returns a reference to this object so that method calls can be chained together.
* @see TimeOrdering
*/
public GetAssetPropertyValueHistoryRequest withTimeOrdering(String timeOrdering) {
setTimeOrdering(timeOrdering);
return this;
}
/**
*
* The chronological sorting order of the requested information. *
*
* Default: ASCENDING
*
* Default: ASCENDING
* @return Returns a reference to this object so that method calls can be chained together.
* @see TimeOrdering
*/
public GetAssetPropertyValueHistoryRequest withTimeOrdering(TimeOrdering timeOrdering) {
this.timeOrdering = timeOrdering.toString();
return this;
}
/**
*
* The token to be used for the next set of paginated results. *
* * @param nextToken * The token to be used for the next set of paginated results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token to be used for the next set of paginated results. *
* * @return The token to be used for the next set of paginated results. */ public String getNextToken() { return this.nextToken; } /** ** The token to be used for the next set of paginated results. *
* * @param nextToken * The token to be used for the next set of paginated results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAssetPropertyValueHistoryRequest withNextToken(String nextToken) { setNextToken(nextToken); 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*