/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the lookoutvision-2020-11-20.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.LookoutforVision.Model
{
///
/// Container for the parameters to the ListDatasetEntries operation.
/// Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains
/// the anomaly information for a single image, including the image location and the assigned
/// label.
///
///
///
/// This operation requires permissions to perform the lookoutvision:ListDatasetEntries
/// operation.
///
///
public partial class ListDatasetEntriesRequest : AmazonLookoutforVisionRequest
{
private DateTime? _afterCreationDate;
private string _anomalyClass;
private DateTime? _beforeCreationDate;
private string _datasetType;
private bool? _labeled;
private int? _maxResults;
private string _nextToken;
private string _projectName;
private string _sourceRefContains;
///
/// Gets and sets the property AfterCreationDate.
///
/// Only includes entries after the specified date in the response. For example, 2020-06-23T00:00:00
.
///
///
public DateTime AfterCreationDate
{
get { return this._afterCreationDate.GetValueOrDefault(); }
set { this._afterCreationDate = value; }
}
// Check to see if AfterCreationDate property is set
internal bool IsSetAfterCreationDate()
{
return this._afterCreationDate.HasValue;
}
///
/// Gets and sets the property AnomalyClass.
///
/// Specify normal
to include only normal images. Specify anomaly
/// to only include anomalous entries. If you don't specify a value, Amazon Lookout for
/// Vision returns normal and anomalous images.
///
///
[AWSProperty(Min=1, Max=10)]
public string AnomalyClass
{
get { return this._anomalyClass; }
set { this._anomalyClass = value; }
}
// Check to see if AnomalyClass property is set
internal bool IsSetAnomalyClass()
{
return this._anomalyClass != null;
}
///
/// Gets and sets the property BeforeCreationDate.
///
/// Only includes entries before the specified date in the response. For example, 2020-06-23T00:00:00
.
///
///
public DateTime BeforeCreationDate
{
get { return this._beforeCreationDate.GetValueOrDefault(); }
set { this._beforeCreationDate = value; }
}
// Check to see if BeforeCreationDate property is set
internal bool IsSetBeforeCreationDate()
{
return this._beforeCreationDate.HasValue;
}
///
/// Gets and sets the property DatasetType.
///
/// The type of the dataset that you want to list. Specify train
to list
/// the training dataset. Specify test
to list the test dataset. If you have
/// a single dataset project, specify train
.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public string DatasetType
{
get { return this._datasetType; }
set { this._datasetType = value; }
}
// Check to see if DatasetType property is set
internal bool IsSetDatasetType()
{
return this._datasetType != null;
}
///
/// Gets and sets the property Labeled.
///
/// Specify true
to include labeled entries, otherwise specify false
.
/// If you don't specify a value, Lookout for Vision returns all entries.
///
///
public bool Labeled
{
get { return this._labeled.GetValueOrDefault(); }
set { this._labeled = value; }
}
// Check to see if Labeled property is set
internal bool IsSetLabeled()
{
return this._labeled.HasValue;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of results to return per paginated call. The largest value you
/// can specify is 100. If you specify a value greater than 100, a ValidationException
/// error occurs. The default value is 100.
///
///
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// If the previous response was incomplete (because there is more data to retrieve),
/// Amazon Lookout for Vision returns a pagination token in the response. You can use
/// this pagination token to retrieve the next set of dataset entries.
///
///
[AWSProperty(Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property ProjectName.
///
/// The name of the project that contains the dataset that you want to list.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProjectName
{
get { return this._projectName; }
set { this._projectName = value; }
}
// Check to see if ProjectName property is set
internal bool IsSetProjectName()
{
return this._projectName != null;
}
///
/// Gets and sets the property SourceRefContains.
///
/// Perform a "contains" search on the values of the source-ref
key within
/// the dataset. For example a value of "IMG_17" returns all JSON Lines where the source-ref
/// key value matches *IMG_17*.
///
///
[AWSProperty(Min=1, Max=2048)]
public string SourceRefContains
{
get { return this._sourceRefContains; }
set { this._sourceRefContains = value; }
}
// Check to see if SourceRefContains property is set
internal bool IsSetSourceRefContains()
{
return this._sourceRefContains != null;
}
}
}