/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CustomerProfiles { namespace Model { class GetWorkflowResult { public: AWS_CUSTOMERPROFILES_API GetWorkflowResult(); AWS_CUSTOMERPROFILES_API GetWorkflowResult(const Aws::AmazonWebServiceResult& result); AWS_CUSTOMERPROFILES_API GetWorkflowResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Unique identifier for the workflow.

*/ inline const Aws::String& GetWorkflowId() const{ return m_workflowId; } /** *

Unique identifier for the workflow.

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

Unique identifier for the workflow.

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

Unique identifier for the workflow.

*/ inline void SetWorkflowId(const char* value) { m_workflowId.assign(value); } /** *

Unique identifier for the workflow.

*/ inline GetWorkflowResult& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;} /** *

Unique identifier for the workflow.

*/ inline GetWorkflowResult& WithWorkflowId(Aws::String&& value) { SetWorkflowId(std::move(value)); return *this;} /** *

Unique identifier for the workflow.

*/ inline GetWorkflowResult& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;} /** *

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

*/ inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; } /** *

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

*/ inline void SetWorkflowType(const WorkflowType& value) { m_workflowType = value; } /** *

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

*/ inline void SetWorkflowType(WorkflowType&& value) { m_workflowType = std::move(value); } /** *

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

*/ inline GetWorkflowResult& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;} /** *

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

*/ inline GetWorkflowResult& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(std::move(value)); return *this;} /** *

Status of workflow execution.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

Status of workflow execution.

*/ inline void SetStatus(const Status& value) { m_status = value; } /** *

Status of workflow execution.

*/ inline void SetStatus(Status&& value) { m_status = std::move(value); } /** *

Status of workflow execution.

*/ inline GetWorkflowResult& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

Status of workflow execution.

*/ inline GetWorkflowResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *

Workflow error messages during execution (if any).

*/ inline const Aws::String& GetErrorDescription() const{ return m_errorDescription; } /** *

Workflow error messages during execution (if any).

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

Workflow error messages during execution (if any).

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

Workflow error messages during execution (if any).

*/ inline void SetErrorDescription(const char* value) { m_errorDescription.assign(value); } /** *

Workflow error messages during execution (if any).

*/ inline GetWorkflowResult& WithErrorDescription(const Aws::String& value) { SetErrorDescription(value); return *this;} /** *

Workflow error messages during execution (if any).

*/ inline GetWorkflowResult& WithErrorDescription(Aws::String&& value) { SetErrorDescription(std::move(value)); return *this;} /** *

Workflow error messages during execution (if any).

*/ inline GetWorkflowResult& WithErrorDescription(const char* value) { SetErrorDescription(value); return *this;} /** *

The timestamp that represents when workflow execution started.

*/ inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; } /** *

The timestamp that represents when workflow execution started.

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

The timestamp that represents when workflow execution started.

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

The timestamp that represents when workflow execution started.

*/ inline GetWorkflowResult& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;} /** *

The timestamp that represents when workflow execution started.

*/ inline GetWorkflowResult& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;} /** *

The timestamp that represents when workflow execution last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The timestamp that represents when workflow execution last updated.

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

The timestamp that represents when workflow execution last updated.

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

The timestamp that represents when workflow execution last updated.

*/ inline GetWorkflowResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The timestamp that represents when workflow execution last updated.

*/ inline GetWorkflowResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

Attributes provided for workflow execution.

*/ inline const WorkflowAttributes& GetAttributes() const{ return m_attributes; } /** *

Attributes provided for workflow execution.

*/ inline void SetAttributes(const WorkflowAttributes& value) { m_attributes = value; } /** *

Attributes provided for workflow execution.

*/ inline void SetAttributes(WorkflowAttributes&& value) { m_attributes = std::move(value); } /** *

Attributes provided for workflow execution.

*/ inline GetWorkflowResult& WithAttributes(const WorkflowAttributes& value) { SetAttributes(value); return *this;} /** *

Attributes provided for workflow execution.

*/ inline GetWorkflowResult& WithAttributes(WorkflowAttributes&& value) { SetAttributes(std::move(value)); return *this;} /** *

Workflow specific execution metrics.

*/ inline const WorkflowMetrics& GetMetrics() const{ return m_metrics; } /** *

Workflow specific execution metrics.

*/ inline void SetMetrics(const WorkflowMetrics& value) { m_metrics = value; } /** *

Workflow specific execution metrics.

*/ inline void SetMetrics(WorkflowMetrics&& value) { m_metrics = std::move(value); } /** *

Workflow specific execution metrics.

*/ inline GetWorkflowResult& WithMetrics(const WorkflowMetrics& value) { SetMetrics(value); return *this;} /** *

Workflow specific execution metrics.

*/ inline GetWorkflowResult& WithMetrics(WorkflowMetrics&& value) { SetMetrics(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 GetWorkflowResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetWorkflowResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetWorkflowResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_workflowId; WorkflowType m_workflowType; Status m_status; Aws::String m_errorDescription; Aws::Utils::DateTime m_startDate; Aws::Utils::DateTime m_lastUpdatedAt; WorkflowAttributes m_attributes; WorkflowMetrics m_metrics; Aws::String m_requestId; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws