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

Provides information about alerts and warnings that Amazon Lex sends during a * migration. The alerts include information about how to resolve the * issue.

See Also:

AWS * API Reference

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

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline const MigrationAlertType& GetType() const{ return m_type; } /** *

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline void SetType(const MigrationAlertType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline void SetType(MigrationAlertType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline MigrationAlert& WithType(const MigrationAlertType& value) { SetType(value); return *this;} /** *

The type of alert. There are two kinds of alerts:

  • * ERROR - There was an issue with the migration that can't be * resolved. The migration stops.

  • WARN - There was * an issue with the migration that requires manual changes to the new Amazon Lex * V2 bot. The migration continues.

*/ inline MigrationAlert& WithType(MigrationAlertType&& value) { SetType(std::move(value)); return *this;} /** *

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

A message that describes why the alert was issued.

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

Additional details about the alert.

*/ inline const Aws::Vector& GetDetails() const{ return m_details; } /** *

Additional details about the alert.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

Additional details about the alert.

*/ inline void SetDetails(const Aws::Vector& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

Additional details about the alert.

*/ inline void SetDetails(Aws::Vector&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

Additional details about the alert.

*/ inline MigrationAlert& WithDetails(const Aws::Vector& value) { SetDetails(value); return *this;} /** *

Additional details about the alert.

*/ inline MigrationAlert& WithDetails(Aws::Vector&& value) { SetDetails(std::move(value)); return *this;} /** *

Additional details about the alert.

*/ inline MigrationAlert& AddDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; } /** *

Additional details about the alert.

*/ inline MigrationAlert& AddDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; } /** *

Additional details about the alert.

*/ inline MigrationAlert& AddDetails(const char* value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline const Aws::Vector& GetReferenceURLs() const{ return m_referenceURLs; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline bool ReferenceURLsHasBeenSet() const { return m_referenceURLsHasBeenSet; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline void SetReferenceURLs(const Aws::Vector& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs = value; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline void SetReferenceURLs(Aws::Vector&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs = std::move(value); } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline MigrationAlert& WithReferenceURLs(const Aws::Vector& value) { SetReferenceURLs(value); return *this;} /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline MigrationAlert& WithReferenceURLs(Aws::Vector&& value) { SetReferenceURLs(std::move(value)); return *this;} /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline MigrationAlert& AddReferenceURLs(const Aws::String& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(value); return *this; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline MigrationAlert& AddReferenceURLs(Aws::String&& value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(std::move(value)); return *this; } /** *

A link to the Amazon Lex documentation that describes how to resolve the * alert.

*/ inline MigrationAlert& AddReferenceURLs(const char* value) { m_referenceURLsHasBeenSet = true; m_referenceURLs.push_back(value); return *this; } private: MigrationAlertType m_type; bool m_typeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_details; bool m_detailsHasBeenSet = false; Aws::Vector m_referenceURLs; bool m_referenceURLsHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws