Class ServerStrategy
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhubstrategy.model.ServerStrategy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServerStrategy.Builder,ServerStrategy>
@Generated("software.amazon.awssdk:codegen") public final class ServerStrategy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServerStrategy.Builder,ServerStrategy>
Contains information about a strategy recommendation for a server.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServerStrategy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerStrategy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisPreferred()Set to true if the recommendation is set as preferred.IntegernumberOfApplicationComponents()The number of application components with this strategy recommendation running on the server.RecommendationSetrecommendation()Strategy recommendation for the server.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServerStrategy.Builder>serializableBuilderClass()StrategyRecommendationstatus()The recommendation status of the strategy for the server.StringstatusAsString()The recommendation status of the strategy for the server.ServerStrategy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
isPreferred
public final Boolean isPreferred()
Set to true if the recommendation is set as preferred.
- Returns:
- Set to true if the recommendation is set as preferred.
-
numberOfApplicationComponents
public final Integer numberOfApplicationComponents()
The number of application components with this strategy recommendation running on the server.
- Returns:
- The number of application components with this strategy recommendation running on the server.
-
recommendation
public final RecommendationSet recommendation()
Strategy recommendation for the server.
- Returns:
- Strategy recommendation for the server.
-
status
public final StrategyRecommendation status()
The recommendation status of the strategy for the server.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStrategyRecommendation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The recommendation status of the strategy for the server.
- See Also:
StrategyRecommendation
-
statusAsString
public final String statusAsString()
The recommendation status of the strategy for the server.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStrategyRecommendation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The recommendation status of the strategy for the server.
- See Also:
StrategyRecommendation
-
toBuilder
public ServerStrategy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServerStrategy.Builder,ServerStrategy>
-
builder
public static ServerStrategy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServerStrategy.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-