Class ManagementPreference
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhubstrategy.model.ManagementPreference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagementPreference.Builder,ManagementPreference>
@Generated("software.amazon.awssdk:codegen") public final class ManagementPreference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagementPreference.Builder,ManagementPreference>
Preferences for migrating an application to AWS.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceManagementPreference.Builderstatic classManagementPreference.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsManagedResourcesawsManagedResources()Indicates interest in solutions that are managed by AWS.static ManagementPreference.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static ManagementPreferencefromAwsManagedResources(Consumer<AwsManagedResources.Builder> awsManagedResources)Create an instance of this class withawsManagedResources()initialized to the given value.static ManagementPreferencefromAwsManagedResources(AwsManagedResources awsManagedResources)Create an instance of this class withawsManagedResources()initialized to the given value.static ManagementPreferencefromNoPreference(Consumer<NoManagementPreference.Builder> noPreference)Create an instance of this class withnoPreference()initialized to the given value.static ManagementPreferencefromNoPreference(NoManagementPreference noPreference)Create an instance of this class withnoPreference()initialized to the given value.static ManagementPreferencefromSelfManageResources(Consumer<SelfManageResources.Builder> selfManageResources)Create an instance of this class withselfManageResources()initialized to the given value.static ManagementPreferencefromSelfManageResources(SelfManageResources selfManageResources)Create an instance of this class withselfManageResources()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()NoManagementPreferencenoPreference()No specific preference.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()SelfManageResourcesselfManageResources()Indicates interest in managing your own resources on AWS.static Class<? extends ManagementPreference.Builder>serializableBuilderClass()ManagementPreference.BuildertoBuilder()StringtoString()Returns a string representation of this object.ManagementPreference.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
-
awsManagedResources
public final AwsManagedResources awsManagedResources()
Indicates interest in solutions that are managed by AWS.
- Returns:
- Indicates interest in solutions that are managed by AWS.
-
noPreference
public final NoManagementPreference noPreference()
No specific preference.
- Returns:
- No specific preference.
-
selfManageResources
public final SelfManageResources selfManageResources()
Indicates interest in managing your own resources on AWS.
- Returns:
- Indicates interest in managing your own resources on AWS.
-
toBuilder
public ManagementPreference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagementPreference.Builder,ManagementPreference>
-
builder
public static ManagementPreference.Builder builder()
-
serializableBuilderClass
public static Class<? extends ManagementPreference.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.
-
fromAwsManagedResources
public static ManagementPreference fromAwsManagedResources(AwsManagedResources awsManagedResources)
Create an instance of this class withawsManagedResources()initialized to the given value.Indicates interest in solutions that are managed by AWS.
- Parameters:
awsManagedResources- Indicates interest in solutions that are managed by AWS.
-
fromAwsManagedResources
public static ManagementPreference fromAwsManagedResources(Consumer<AwsManagedResources.Builder> awsManagedResources)
Create an instance of this class withawsManagedResources()initialized to the given value.Indicates interest in solutions that are managed by AWS.
- Parameters:
awsManagedResources- Indicates interest in solutions that are managed by AWS.
-
fromNoPreference
public static ManagementPreference fromNoPreference(NoManagementPreference noPreference)
Create an instance of this class withnoPreference()initialized to the given value.No specific preference.
- Parameters:
noPreference- No specific preference.
-
fromNoPreference
public static ManagementPreference fromNoPreference(Consumer<NoManagementPreference.Builder> noPreference)
Create an instance of this class withnoPreference()initialized to the given value.No specific preference.
- Parameters:
noPreference- No specific preference.
-
fromSelfManageResources
public static ManagementPreference fromSelfManageResources(SelfManageResources selfManageResources)
Create an instance of this class withselfManageResources()initialized to the given value.Indicates interest in managing your own resources on AWS.
- Parameters:
selfManageResources- Indicates interest in managing your own resources on AWS.
-
fromSelfManageResources
public static ManagementPreference fromSelfManageResources(Consumer<SelfManageResources.Builder> selfManageResources)
Create an instance of this class withselfManageResources()initialized to the given value.Indicates interest in managing your own resources on AWS.
- Parameters:
selfManageResources- Indicates interest in managing your own resources on AWS.
-
type
public ManagementPreference.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 beManagementPreference.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 beManagementPreference.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-