/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AugmentedAIRuntime { namespace Model { class DescribeHumanLoopResult { public: AWS_AUGMENTEDAIRUNTIME_API DescribeHumanLoopResult(); AWS_AUGMENTEDAIRUNTIME_API DescribeHumanLoopResult(const Aws::AmazonWebServiceResult& result); AWS_AUGMENTEDAIRUNTIME_API DescribeHumanLoopResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The creation time when Amazon Augmented AI created the human loop.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time when Amazon Augmented AI created the human loop.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The creation time when Amazon Augmented AI created the human loop.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The creation time when Amazon Augmented AI created the human loop.

*/ inline DescribeHumanLoopResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time when Amazon Augmented AI created the human loop.

*/ inline DescribeHumanLoopResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline DescribeHumanLoopResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline DescribeHumanLoopResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason why a human loop failed. The failure reason is returned when the * status of the human loop is Failed.

*/ inline DescribeHumanLoopResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline void SetFailureCode(const Aws::String& value) { m_failureCode = value; } /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline void SetFailureCode(Aws::String&& value) { m_failureCode = std::move(value); } /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline void SetFailureCode(const char* value) { m_failureCode.assign(value); } /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline DescribeHumanLoopResult& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline DescribeHumanLoopResult& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *

A failure code that identifies the type of failure.

Possible values: * ValidationError, Expired, InternalError *

*/ inline DescribeHumanLoopResult& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *

The status of the human loop.

*/ inline const HumanLoopStatus& GetHumanLoopStatus() const{ return m_humanLoopStatus; } /** *

The status of the human loop.

*/ inline void SetHumanLoopStatus(const HumanLoopStatus& value) { m_humanLoopStatus = value; } /** *

The status of the human loop.

*/ inline void SetHumanLoopStatus(HumanLoopStatus&& value) { m_humanLoopStatus = std::move(value); } /** *

The status of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopStatus(const HumanLoopStatus& value) { SetHumanLoopStatus(value); return *this;} /** *

The status of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopStatus(HumanLoopStatus&& value) { SetHumanLoopStatus(std::move(value)); return *this;} /** *

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).

*/ inline const Aws::String& GetHumanLoopName() const{ return m_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).

*/ inline void SetHumanLoopName(const Aws::String& value) { m_humanLoopName = value; } /** *

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).

*/ inline void SetHumanLoopName(Aws::String&& value) { m_humanLoopName = std::move(value); } /** *

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).

*/ inline void SetHumanLoopName(const char* value) { m_humanLoopName.assign(value); } /** *

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).

*/ inline DescribeHumanLoopResult& WithHumanLoopName(const Aws::String& value) { SetHumanLoopName(value); return *this;} /** *

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).

*/ inline DescribeHumanLoopResult& WithHumanLoopName(Aws::String&& value) { SetHumanLoopName(std::move(value)); return *this;} /** *

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).

*/ inline DescribeHumanLoopResult& WithHumanLoopName(const char* value) { SetHumanLoopName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline const Aws::String& GetHumanLoopArn() const{ return m_humanLoopArn; } /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline void SetHumanLoopArn(const Aws::String& value) { m_humanLoopArn = value; } /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline void SetHumanLoopArn(Aws::String&& value) { m_humanLoopArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline void SetHumanLoopArn(const char* value) { m_humanLoopArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopArn(const Aws::String& value) { SetHumanLoopArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopArn(Aws::String&& value) { SetHumanLoopArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopArn(const char* value) { SetHumanLoopArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline const Aws::String& GetFlowDefinitionArn() const{ return m_flowDefinitionArn; } /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline void SetFlowDefinitionArn(const Aws::String& value) { m_flowDefinitionArn = value; } /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline void SetFlowDefinitionArn(Aws::String&& value) { m_flowDefinitionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline void SetFlowDefinitionArn(const char* value) { m_flowDefinitionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline DescribeHumanLoopResult& WithFlowDefinitionArn(const Aws::String& value) { SetFlowDefinitionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline DescribeHumanLoopResult& WithFlowDefinitionArn(Aws::String&& value) { SetFlowDefinitionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the flow definition.

*/ inline DescribeHumanLoopResult& WithFlowDefinitionArn(const char* value) { SetFlowDefinitionArn(value); return *this;} /** *

An object that contains information about the output of the human loop.

*/ inline const HumanLoopOutput& GetHumanLoopOutput() const{ return m_humanLoopOutput; } /** *

An object that contains information about the output of the human loop.

*/ inline void SetHumanLoopOutput(const HumanLoopOutput& value) { m_humanLoopOutput = value; } /** *

An object that contains information about the output of the human loop.

*/ inline void SetHumanLoopOutput(HumanLoopOutput&& value) { m_humanLoopOutput = std::move(value); } /** *

An object that contains information about the output of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopOutput(const HumanLoopOutput& value) { SetHumanLoopOutput(value); return *this;} /** *

An object that contains information about the output of the human loop.

*/ inline DescribeHumanLoopResult& WithHumanLoopOutput(HumanLoopOutput&& value) { SetHumanLoopOutput(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeHumanLoopResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeHumanLoopResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeHumanLoopResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_creationTime; Aws::String m_failureReason; Aws::String m_failureCode; HumanLoopStatus m_humanLoopStatus; Aws::String m_humanLoopName; Aws::String m_humanLoopArn; Aws::String m_flowDefinitionArn; HumanLoopOutput m_humanLoopOutput; Aws::String m_requestId; }; } // namespace Model } // namespace AugmentedAIRuntime } // namespace Aws