/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

Describes the status of an attempt from Amazon AppFlow to register a * resource.

When you run a flow that you've configured to use a metadata * catalog, Amazon AppFlow registers a metadata table and data partitions with that * catalog. This operation provides the status of that registration attempt. The * operation also indicates how many related resources Amazon AppFlow created or * updated.

See Also:

AWS * API Reference

*/ class RegistrationOutput { public: AWS_APPFLOW_API RegistrationOutput(); AWS_APPFLOW_API RegistrationOutput(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API RegistrationOutput& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline RegistrationOutput& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline RegistrationOutput& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Explains the status of the registration attempt from Amazon AppFlow. If the * attempt fails, the message explains why.

*/ inline RegistrationOutput& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline const Aws::String& GetResult() const{ return m_result; } /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; } /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); } /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline RegistrationOutput& WithResult(const Aws::String& value) { SetResult(value); return *this;} /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline RegistrationOutput& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} /** *

Indicates the number of resources that Amazon AppFlow created or updated. * Possible resources include metadata tables and data partitions.

*/ inline RegistrationOutput& WithResult(const char* value) { SetResult(value); return *this;} /** *

Indicates the status of the registration attempt from Amazon AppFlow.

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

Indicates the status of the registration attempt from Amazon AppFlow.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Indicates the status of the registration attempt from Amazon AppFlow.

*/ inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Indicates the status of the registration attempt from Amazon AppFlow.

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

Indicates the status of the registration attempt from Amazon AppFlow.

*/ inline RegistrationOutput& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;} /** *

Indicates the status of the registration attempt from Amazon AppFlow.

*/ inline RegistrationOutput& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_result; bool m_resultHasBeenSet = false; ExecutionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws