/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
///
/// This is the response object from the DescribeHumanLoop operation.
///
public partial class DescribeHumanLoopResponse : AmazonWebServiceResponse
{
private DateTime? _creationTime;
private string _failureCode;
private string _failureReason;
private string _flowDefinitionArn;
private string _humanLoopArn;
private string _humanLoopName;
private HumanLoopOutput _humanLoopOutput;
private HumanLoopStatus _humanLoopStatus;
///
/// Gets and sets the property CreationTime.
///
/// The creation time when Amazon Augmented AI created the human loop.
///
///
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property FailureCode.
///
/// A failure code that identifies the type of failure.
///
///
///
/// Possible values: ValidationError
, Expired
, InternalError
///
///
///
public string FailureCode
{
get { return this._failureCode; }
set { this._failureCode = value; }
}
// Check to see if FailureCode property is set
internal bool IsSetFailureCode()
{
return this._failureCode != null;
}
///
/// Gets and sets the property FailureReason.
///
/// The reason why a human loop failed. The failure reason is returned when the status
/// of the human loop is Failed
.
///
///
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property FlowDefinitionArn.
///
/// The Amazon Resource Name (ARN) of the flow definition.
///
///
[AWSProperty(Required=true, Max=1024)]
public string FlowDefinitionArn
{
get { return this._flowDefinitionArn; }
set { this._flowDefinitionArn = value; }
}
// Check to see if FlowDefinitionArn property is set
internal bool IsSetFlowDefinitionArn()
{
return this._flowDefinitionArn != null;
}
///
/// Gets and sets the property HumanLoopArn.
///
/// The Amazon Resource Name (ARN) of the human loop.
///
///
[AWSProperty(Required=true, Max=1024)]
public string HumanLoopArn
{
get { return this._humanLoopArn; }
set { this._humanLoopArn = value; }
}
// Check to see if HumanLoopArn property is set
internal bool IsSetHumanLoopArn()
{
return this._humanLoopArn != null;
}
///
/// Gets and sets the property HumanLoopName.
///
/// The name of the human loop. The name must be lowercase, unique within the Region in
/// your account, and can have up to 63 characters. Valid characters: a-z, 0-9, and -
/// (hyphen).
///
///
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
///
/// Gets and sets the property HumanLoopOutput.
///
/// An object that contains information about the output of the human loop.
///
///
public HumanLoopOutput HumanLoopOutput
{
get { return this._humanLoopOutput; }
set { this._humanLoopOutput = value; }
}
// Check to see if HumanLoopOutput property is set
internal bool IsSetHumanLoopOutput()
{
return this._humanLoopOutput != null;
}
///
/// Gets and sets the property HumanLoopStatus.
///
/// The status of the human loop.
///
///
[AWSProperty(Required=true)]
public HumanLoopStatus HumanLoopStatus
{
get { return this._humanLoopStatus; }
set { this._humanLoopStatus = value; }
}
// Check to see if HumanLoopStatus property is set
internal bool IsSetHumanLoopStatus()
{
return this._humanLoopStatus != null;
}
}
}