All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lexmodelbuilding.model.MigrationSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Lex Model Building module holds the client classes that are used for communicating with Amazon Lex Model Building Service

The newest version!
/*
 * Copyright 2019-2024 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 migrating a bot from Amazon Lex V1 to Amazon Lex V2. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MigrationSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifier that Amazon Lex assigned to the migration. *

*/ private String migrationId; /** *

* The name of the Amazon Lex V1 bot that is the source of the migration. *

*/ private String v1BotName; /** *

* The version of the Amazon Lex V1 bot that is the source of the migration. *

*/ private String v1BotVersion; /** *

* The locale of the Amazon Lex V1 bot that is the source of the migration. *

*/ private String v1BotLocale; /** *

* The unique identifier of the Amazon Lex V2 that is the destination of the migration. *

*/ private String v2BotId; /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

*/ private String v2BotRole; /** *

* The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. * There may be alerts and warnings that need to be resolved to complete the migration. *

*/ private String migrationStatus; /** *

* The strategy used to conduct the migration. *

*/ private String migrationStrategy; /** *

* The date and time that the migration started. *

*/ private java.util.Date migrationTimestamp; /** *

* The unique identifier that Amazon Lex assigned to the migration. *

* * @param migrationId * The unique identifier that Amazon Lex assigned to the migration. */ public void setMigrationId(String migrationId) { this.migrationId = migrationId; } /** *

* The unique identifier that Amazon Lex assigned to the migration. *

* * @return The unique identifier that Amazon Lex assigned to the migration. */ public String getMigrationId() { return this.migrationId; } /** *

* The unique identifier that Amazon Lex assigned to the migration. *

* * @param migrationId * The unique identifier that Amazon Lex assigned to the migration. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withMigrationId(String migrationId) { setMigrationId(migrationId); return this; } /** *

* The name of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotName * The name of the Amazon Lex V1 bot that is the source of the migration. */ public void setV1BotName(String v1BotName) { this.v1BotName = v1BotName; } /** *

* The name of the Amazon Lex V1 bot that is the source of the migration. *

* * @return The name of the Amazon Lex V1 bot that is the source of the migration. */ public String getV1BotName() { return this.v1BotName; } /** *

* The name of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotName * The name of the Amazon Lex V1 bot that is the source of the migration. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withV1BotName(String v1BotName) { setV1BotName(v1BotName); return this; } /** *

* The version of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotVersion * The version of the Amazon Lex V1 bot that is the source of the migration. */ public void setV1BotVersion(String v1BotVersion) { this.v1BotVersion = v1BotVersion; } /** *

* The version of the Amazon Lex V1 bot that is the source of the migration. *

* * @return The version of the Amazon Lex V1 bot that is the source of the migration. */ public String getV1BotVersion() { return this.v1BotVersion; } /** *

* The version of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotVersion * The version of the Amazon Lex V1 bot that is the source of the migration. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withV1BotVersion(String v1BotVersion) { setV1BotVersion(v1BotVersion); return this; } /** *

* The locale of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot that is the source of the migration. * @see Locale */ public void setV1BotLocale(String v1BotLocale) { this.v1BotLocale = v1BotLocale; } /** *

* The locale of the Amazon Lex V1 bot that is the source of the migration. *

* * @return The locale of the Amazon Lex V1 bot that is the source of the migration. * @see Locale */ public String getV1BotLocale() { return this.v1BotLocale; } /** *

* The locale of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot that is the source of the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public MigrationSummary withV1BotLocale(String v1BotLocale) { setV1BotLocale(v1BotLocale); return this; } /** *

* The locale of the Amazon Lex V1 bot that is the source of the migration. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot that is the source of the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public MigrationSummary withV1BotLocale(Locale v1BotLocale) { this.v1BotLocale = v1BotLocale.toString(); return this; } /** *

* The unique identifier of the Amazon Lex V2 that is the destination of the migration. *

* * @param v2BotId * The unique identifier of the Amazon Lex V2 that is the destination of the migration. */ public void setV2BotId(String v2BotId) { this.v2BotId = v2BotId; } /** *

* The unique identifier of the Amazon Lex V2 that is the destination of the migration. *

* * @return The unique identifier of the Amazon Lex V2 that is the destination of the migration. */ public String getV2BotId() { return this.v2BotId; } /** *

* The unique identifier of the Amazon Lex V2 that is the destination of the migration. *

* * @param v2BotId * The unique identifier of the Amazon Lex V2 that is the destination of the migration. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withV2BotId(String v2BotId) { setV2BotId(v2BotId); return this; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @param v2BotRole * The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. */ public void setV2BotRole(String v2BotRole) { this.v2BotRole = v2BotRole; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @return The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. */ public String getV2BotRole() { return this.v2BotRole; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @param v2BotRole * The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withV2BotRole(String v2BotRole) { setV2BotRole(v2BotRole); return this; } /** *

* The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. * There may be alerts and warnings that need to be resolved to complete the migration. *

* * @param migrationStatus * The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex * V2. There may be alerts and warnings that need to be resolved to complete the migration. * @see MigrationStatus */ public void setMigrationStatus(String migrationStatus) { this.migrationStatus = migrationStatus; } /** *

* The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. * There may be alerts and warnings that need to be resolved to complete the migration. *

* * @return The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex * V2. There may be alerts and warnings that need to be resolved to complete the migration. * @see MigrationStatus */ public String getMigrationStatus() { return this.migrationStatus; } /** *

* The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. * There may be alerts and warnings that need to be resolved to complete the migration. *

* * @param migrationStatus * The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex * V2. There may be alerts and warnings that need to be resolved to complete the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStatus */ public MigrationSummary withMigrationStatus(String migrationStatus) { setMigrationStatus(migrationStatus); return this; } /** *

* The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. * There may be alerts and warnings that need to be resolved to complete the migration. *

* * @param migrationStatus * The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex * V2. There may be alerts and warnings that need to be resolved to complete the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStatus */ public MigrationSummary withMigrationStatus(MigrationStatus migrationStatus) { this.migrationStatus = migrationStatus.toString(); return this; } /** *

* The strategy used to conduct the migration. *

* * @param migrationStrategy * The strategy used to conduct the migration. * @see MigrationStrategy */ public void setMigrationStrategy(String migrationStrategy) { this.migrationStrategy = migrationStrategy; } /** *

* The strategy used to conduct the migration. *

* * @return The strategy used to conduct the migration. * @see MigrationStrategy */ public String getMigrationStrategy() { return this.migrationStrategy; } /** *

* The strategy used to conduct the migration. *

* * @param migrationStrategy * The strategy used to conduct the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStrategy */ public MigrationSummary withMigrationStrategy(String migrationStrategy) { setMigrationStrategy(migrationStrategy); return this; } /** *

* The strategy used to conduct the migration. *

* * @param migrationStrategy * The strategy used to conduct the migration. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStrategy */ public MigrationSummary withMigrationStrategy(MigrationStrategy migrationStrategy) { this.migrationStrategy = migrationStrategy.toString(); return this; } /** *

* The date and time that the migration started. *

* * @param migrationTimestamp * The date and time that the migration started. */ public void setMigrationTimestamp(java.util.Date migrationTimestamp) { this.migrationTimestamp = migrationTimestamp; } /** *

* The date and time that the migration started. *

* * @return The date and time that the migration started. */ public java.util.Date getMigrationTimestamp() { return this.migrationTimestamp; } /** *

* The date and time that the migration started. *

* * @param migrationTimestamp * The date and time that the migration started. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationSummary withMigrationTimestamp(java.util.Date migrationTimestamp) { setMigrationTimestamp(migrationTimestamp); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMigrationId() != null) sb.append("MigrationId: ").append(getMigrationId()).append(","); if (getV1BotName() != null) sb.append("V1BotName: ").append(getV1BotName()).append(","); if (getV1BotVersion() != null) sb.append("V1BotVersion: ").append(getV1BotVersion()).append(","); if (getV1BotLocale() != null) sb.append("V1BotLocale: ").append(getV1BotLocale()).append(","); if (getV2BotId() != null) sb.append("V2BotId: ").append(getV2BotId()).append(","); if (getV2BotRole() != null) sb.append("V2BotRole: ").append(getV2BotRole()).append(","); if (getMigrationStatus() != null) sb.append("MigrationStatus: ").append(getMigrationStatus()).append(","); if (getMigrationStrategy() != null) sb.append("MigrationStrategy: ").append(getMigrationStrategy()).append(","); if (getMigrationTimestamp() != null) sb.append("MigrationTimestamp: ").append(getMigrationTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MigrationSummary == false) return false; MigrationSummary other = (MigrationSummary) obj; if (other.getMigrationId() == null ^ this.getMigrationId() == null) return false; if (other.getMigrationId() != null && other.getMigrationId().equals(this.getMigrationId()) == false) return false; if (other.getV1BotName() == null ^ this.getV1BotName() == null) return false; if (other.getV1BotName() != null && other.getV1BotName().equals(this.getV1BotName()) == false) return false; if (other.getV1BotVersion() == null ^ this.getV1BotVersion() == null) return false; if (other.getV1BotVersion() != null && other.getV1BotVersion().equals(this.getV1BotVersion()) == false) return false; if (other.getV1BotLocale() == null ^ this.getV1BotLocale() == null) return false; if (other.getV1BotLocale() != null && other.getV1BotLocale().equals(this.getV1BotLocale()) == false) return false; if (other.getV2BotId() == null ^ this.getV2BotId() == null) return false; if (other.getV2BotId() != null && other.getV2BotId().equals(this.getV2BotId()) == false) return false; if (other.getV2BotRole() == null ^ this.getV2BotRole() == null) return false; if (other.getV2BotRole() != null && other.getV2BotRole().equals(this.getV2BotRole()) == false) return false; if (other.getMigrationStatus() == null ^ this.getMigrationStatus() == null) return false; if (other.getMigrationStatus() != null && other.getMigrationStatus().equals(this.getMigrationStatus()) == false) return false; if (other.getMigrationStrategy() == null ^ this.getMigrationStrategy() == null) return false; if (other.getMigrationStrategy() != null && other.getMigrationStrategy().equals(this.getMigrationStrategy()) == false) return false; if (other.getMigrationTimestamp() == null ^ this.getMigrationTimestamp() == null) return false; if (other.getMigrationTimestamp() != null && other.getMigrationTimestamp().equals(this.getMigrationTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMigrationId() == null) ? 0 : getMigrationId().hashCode()); hashCode = prime * hashCode + ((getV1BotName() == null) ? 0 : getV1BotName().hashCode()); hashCode = prime * hashCode + ((getV1BotVersion() == null) ? 0 : getV1BotVersion().hashCode()); hashCode = prime * hashCode + ((getV1BotLocale() == null) ? 0 : getV1BotLocale().hashCode()); hashCode = prime * hashCode + ((getV2BotId() == null) ? 0 : getV2BotId().hashCode()); hashCode = prime * hashCode + ((getV2BotRole() == null) ? 0 : getV2BotRole().hashCode()); hashCode = prime * hashCode + ((getMigrationStatus() == null) ? 0 : getMigrationStatus().hashCode()); hashCode = prime * hashCode + ((getMigrationStrategy() == null) ? 0 : getMigrationStrategy().hashCode()); hashCode = prime * hashCode + ((getMigrationTimestamp() == null) ? 0 : getMigrationTimestamp().hashCode()); return hashCode; } @Override public MigrationSummary clone() { try { return (MigrationSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.lexmodelbuilding.model.transform.MigrationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy