com.amazonaws.services.databasemigrationservice.model.Limitation Maven / Gradle / Ivy
/*
* 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.databasemigrationservice.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Provides information about the limitations of target Amazon Web Services engines.
*
*
* Your source database might include features that the target Amazon Web Services engine doesn't support. Fleet Advisor
* lists these features as limitations. You should consider these limitations during database migration. For each
* limitation, Fleet Advisor recommends an action that you can take to address or avoid this limitation.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Limitation implements Serializable, Cloneable, StructuredPojo {
/**
*
* The identifier of the source database.
*
*/
private String databaseId;
/**
*
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid values
* include "rds-aurora-mysql"
, "rds-aurora-postgresql"
, "rds-mysql"
,
* "rds-oracle"
, "rds-sql-server"
, and "rds-postgresql"
.
*
*/
private String engineName;
/**
*
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*
*/
private String name;
/**
*
* A description of the limitation. Provides additional information about the limitation, and includes recommended
* actions that you can take to address or avoid this limitation.
*
*/
private String description;
/**
*
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to address.
* Valid values include "Blocker"
, "High"
, "Medium"
, and "Low"
.
*
*/
private String impact;
/**
*
* The type of the limitation, such as action required, upgrade required, and limited feature.
*
*/
private String type;
/**
*
* The identifier of the source database.
*
*
* @param databaseId
* The identifier of the source database.
*/
public void setDatabaseId(String databaseId) {
this.databaseId = databaseId;
}
/**
*
* The identifier of the source database.
*
*
* @return The identifier of the source database.
*/
public String getDatabaseId() {
return this.databaseId;
}
/**
*
* The identifier of the source database.
*
*
* @param databaseId
* The identifier of the source database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withDatabaseId(String databaseId) {
setDatabaseId(databaseId);
return this;
}
/**
*
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid values
* include "rds-aurora-mysql"
, "rds-aurora-postgresql"
, "rds-mysql"
,
* "rds-oracle"
, "rds-sql-server"
, and "rds-postgresql"
.
*
*
* @param engineName
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid
* values include "rds-aurora-mysql"
, "rds-aurora-postgresql"
,
* "rds-mysql"
, "rds-oracle"
, "rds-sql-server"
, and
* "rds-postgresql"
.
*/
public void setEngineName(String engineName) {
this.engineName = engineName;
}
/**
*
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid values
* include "rds-aurora-mysql"
, "rds-aurora-postgresql"
, "rds-mysql"
,
* "rds-oracle"
, "rds-sql-server"
, and "rds-postgresql"
.
*
*
* @return The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid
* values include "rds-aurora-mysql"
, "rds-aurora-postgresql"
,
* "rds-mysql"
, "rds-oracle"
, "rds-sql-server"
, and
* "rds-postgresql"
.
*/
public String getEngineName() {
return this.engineName;
}
/**
*
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid values
* include "rds-aurora-mysql"
, "rds-aurora-postgresql"
, "rds-mysql"
,
* "rds-oracle"
, "rds-sql-server"
, and "rds-postgresql"
.
*
*
* @param engineName
* The name of the target engine that Fleet Advisor should use in the target engine recommendation. Valid
* values include "rds-aurora-mysql"
, "rds-aurora-postgresql"
,
* "rds-mysql"
, "rds-oracle"
, "rds-sql-server"
, and
* "rds-postgresql"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withEngineName(String engineName) {
setEngineName(engineName);
return this;
}
/**
*
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*
*
* @param name
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*
*
* @return The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
*
*
* @param name
* The name of the limitation. Describes unsupported database features, migration action items, and other
* limitations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withName(String name) {
setName(name);
return this;
}
/**
*
* A description of the limitation. Provides additional information about the limitation, and includes recommended
* actions that you can take to address or avoid this limitation.
*
*
* @param description
* A description of the limitation. Provides additional information about the limitation, and includes
* recommended actions that you can take to address or avoid this limitation.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the limitation. Provides additional information about the limitation, and includes recommended
* actions that you can take to address or avoid this limitation.
*
*
* @return A description of the limitation. Provides additional information about the limitation, and includes
* recommended actions that you can take to address or avoid this limitation.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the limitation. Provides additional information about the limitation, and includes recommended
* actions that you can take to address or avoid this limitation.
*
*
* @param description
* A description of the limitation. Provides additional information about the limitation, and includes
* recommended actions that you can take to address or avoid this limitation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to address.
* Valid values include "Blocker"
, "High"
, "Medium"
, and "Low"
.
*
*
* @param impact
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to
* address. Valid values include "Blocker"
, "High"
, "Medium"
, and
* "Low"
.
*/
public void setImpact(String impact) {
this.impact = impact;
}
/**
*
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to address.
* Valid values include "Blocker"
, "High"
, "Medium"
, and "Low"
.
*
*
* @return The impact of the limitation. You can use this parameter to prioritize limitations that you want to
* address. Valid values include "Blocker"
, "High"
, "Medium"
, and
* "Low"
.
*/
public String getImpact() {
return this.impact;
}
/**
*
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to address.
* Valid values include "Blocker"
, "High"
, "Medium"
, and "Low"
.
*
*
* @param impact
* The impact of the limitation. You can use this parameter to prioritize limitations that you want to
* address. Valid values include "Blocker"
, "High"
, "Medium"
, and
* "Low"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withImpact(String impact) {
setImpact(impact);
return this;
}
/**
*
* The type of the limitation, such as action required, upgrade required, and limited feature.
*
*
* @param type
* The type of the limitation, such as action required, upgrade required, and limited feature.
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of the limitation, such as action required, upgrade required, and limited feature.
*
*
* @return The type of the limitation, such as action required, upgrade required, and limited feature.
*/
public String getType() {
return this.type;
}
/**
*
* The type of the limitation, such as action required, upgrade required, and limited feature.
*
*
* @param type
* The type of the limitation, such as action required, upgrade required, and limited feature.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Limitation withType(String type) {
setType(type);
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 (getDatabaseId() != null)
sb.append("DatabaseId: ").append(getDatabaseId()).append(",");
if (getEngineName() != null)
sb.append("EngineName: ").append(getEngineName()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getImpact() != null)
sb.append("Impact: ").append(getImpact()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Limitation == false)
return false;
Limitation other = (Limitation) obj;
if (other.getDatabaseId() == null ^ this.getDatabaseId() == null)
return false;
if (other.getDatabaseId() != null && other.getDatabaseId().equals(this.getDatabaseId()) == false)
return false;
if (other.getEngineName() == null ^ this.getEngineName() == null)
return false;
if (other.getEngineName() != null && other.getEngineName().equals(this.getEngineName()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getImpact() == null ^ this.getImpact() == null)
return false;
if (other.getImpact() != null && other.getImpact().equals(this.getImpact()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDatabaseId() == null) ? 0 : getDatabaseId().hashCode());
hashCode = prime * hashCode + ((getEngineName() == null) ? 0 : getEngineName().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getImpact() == null) ? 0 : getImpact().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
return hashCode;
}
@Override
public Limitation clone() {
try {
return (Limitation) 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.databasemigrationservice.model.transform.LimitationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}