/* * Copyright 2018-2023 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. */ package com.amazonaws.services.lexmodelbuilding.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides information about alerts and warnings that Amazon Lex sends during a migration. The alerts include * information about how to resolve the issue. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MigrationAlert implements Serializable, Cloneable, StructuredPojo { /** ** 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.
*
* A message that describes why the alert was issued. *
*/ private String message; /** ** Additional details about the alert. *
*/ private java.util.List* A link to the Amazon Lex documentation that describes how to resolve the alert. *
*/ private java.util.List* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* A message that describes why the alert was issued. *
* * @param message * A message that describes why the alert was issued. */ public void setMessage(String message) { this.message = message; } /** ** A message that describes why the alert was issued. *
* * @return A message that describes why the alert was issued. */ public String getMessage() { return this.message; } /** ** A message that describes why the alert was issued. *
* * @param message * A message that describes why the alert was issued. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationAlert withMessage(String message) { setMessage(message); return this; } /** ** Additional details about the alert. *
* * @return Additional details about the alert. */ public java.util.List* Additional details about the alert. *
* * @param details * Additional details about the alert. */ public void setDetails(java.util.Collection* Additional details about the alert. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDetails(java.util.Collection)} or {@link #withDetails(java.util.Collection)} if you want to override * the existing values. *
* * @param details * Additional details about the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationAlert withDetails(String... details) { if (this.details == null) { setDetails(new java.util.ArrayList* Additional details about the alert. *
* * @param details * Additional details about the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationAlert withDetails(java.util.Collection* A link to the Amazon Lex documentation that describes how to resolve the alert. *
* * @return A link to the Amazon Lex documentation that describes how to resolve the alert. */ public java.util.List* A link to the Amazon Lex documentation that describes how to resolve the alert. *
* * @param referenceURLs * A link to the Amazon Lex documentation that describes how to resolve the alert. */ public void setReferenceURLs(java.util.Collection* A link to the Amazon Lex documentation that describes how to resolve the alert. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReferenceURLs(java.util.Collection)} or {@link #withReferenceURLs(java.util.Collection)} if you want * to override the existing values. *
* * @param referenceURLs * A link to the Amazon Lex documentation that describes how to resolve the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationAlert withReferenceURLs(String... referenceURLs) { if (this.referenceURLs == null) { setReferenceURLs(new java.util.ArrayList* A link to the Amazon Lex documentation that describes how to resolve the alert. *
* * @param referenceURLs * A link to the Amazon Lex documentation that describes how to resolve the alert. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationAlert withReferenceURLs(java.util.Collection