Class DatabaseMigrationPreference
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhubstrategy.model.DatabaseMigrationPreference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DatabaseMigrationPreference.Builder,DatabaseMigrationPreference>
@Generated("software.amazon.awssdk:codegen") public final class DatabaseMigrationPreference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DatabaseMigrationPreference.Builder,DatabaseMigrationPreference>
Preferences for migrating a database to AWS.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDatabaseMigrationPreference.Builderstatic classDatabaseMigrationPreference.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatabaseMigrationPreference.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static DatabaseMigrationPreferencefromHeterogeneous(Consumer<Heterogeneous.Builder> heterogeneous)Create an instance of this class withheterogeneous()initialized to the given value.static DatabaseMigrationPreferencefromHeterogeneous(Heterogeneous heterogeneous)Create an instance of this class withheterogeneous()initialized to the given value.static DatabaseMigrationPreferencefromHomogeneous(Consumer<Homogeneous.Builder> homogeneous)Create an instance of this class withhomogeneous()initialized to the given value.static DatabaseMigrationPreferencefromHomogeneous(Homogeneous homogeneous)Create an instance of this class withhomogeneous()initialized to the given value.static DatabaseMigrationPreferencefromNoPreference(Consumer<NoDatabaseMigrationPreference.Builder> noPreference)Create an instance of this class withnoPreference()initialized to the given value.static DatabaseMigrationPreferencefromNoPreference(NoDatabaseMigrationPreference noPreference)Create an instance of this class withnoPreference()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Heterogeneousheterogeneous()Indicates whether you are interested in moving from one type of database to another.Homogeneoushomogeneous()Indicates whether you are interested in moving to the same type of database into AWS.NoDatabaseMigrationPreferencenoPreference()Indicated that you do not prefer heterogeneous or homogeneous.List<SdkField<?>>sdkFields()static Class<? extends DatabaseMigrationPreference.Builder>serializableBuilderClass()DatabaseMigrationPreference.BuildertoBuilder()StringtoString()Returns a string representation of this object.DatabaseMigrationPreference.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
heterogeneous
public final Heterogeneous heterogeneous()
Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
- Returns:
- Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
-
homogeneous
public final Homogeneous homogeneous()
Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
- Returns:
- Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
-
noPreference
public final NoDatabaseMigrationPreference noPreference()
Indicated that you do not prefer heterogeneous or homogeneous.
- Returns:
- Indicated that you do not prefer heterogeneous or homogeneous.
-
toBuilder
public DatabaseMigrationPreference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DatabaseMigrationPreference.Builder,DatabaseMigrationPreference>
-
builder
public static DatabaseMigrationPreference.Builder builder()
-
serializableBuilderClass
public static Class<? extends DatabaseMigrationPreference.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
fromHeterogeneous
public static DatabaseMigrationPreference fromHeterogeneous(Heterogeneous heterogeneous)
Create an instance of this class withheterogeneous()initialized to the given value.Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
- Parameters:
heterogeneous- Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
-
fromHeterogeneous
public static DatabaseMigrationPreference fromHeterogeneous(Consumer<Heterogeneous.Builder> heterogeneous)
Create an instance of this class withheterogeneous()initialized to the given value.Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
- Parameters:
heterogeneous- Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
-
fromHomogeneous
public static DatabaseMigrationPreference fromHomogeneous(Homogeneous homogeneous)
Create an instance of this class withhomogeneous()initialized to the given value.Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
- Parameters:
homogeneous- Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
-
fromHomogeneous
public static DatabaseMigrationPreference fromHomogeneous(Consumer<Homogeneous.Builder> homogeneous)
Create an instance of this class withhomogeneous()initialized to the given value.Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
- Parameters:
homogeneous- Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
-
fromNoPreference
public static DatabaseMigrationPreference fromNoPreference(NoDatabaseMigrationPreference noPreference)
Create an instance of this class withnoPreference()initialized to the given value.Indicated that you do not prefer heterogeneous or homogeneous.
- Parameters:
noPreference- Indicated that you do not prefer heterogeneous or homogeneous.
-
fromNoPreference
public static DatabaseMigrationPreference fromNoPreference(Consumer<NoDatabaseMigrationPreference.Builder> noPreference)
Create an instance of this class withnoPreference()initialized to the given value.Indicated that you do not prefer heterogeneous or homogeneous.
- Parameters:
noPreference- Indicated that you do not prefer heterogeneous or homogeneous.
-
type
public DatabaseMigrationPreference.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beDatabaseMigrationPreference.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beDatabaseMigrationPreference.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-