Class ConfigRecommendation
- java.lang.Object
-
- software.amazon.awssdk.services.resiliencehub.model.ConfigRecommendation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConfigRecommendation.Builder,ConfigRecommendation>
@Generated("software.amazon.awssdk:codegen") public final class ConfigRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConfigRecommendation.Builder,ConfigRecommendation>
Defines a recommendation configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfigRecommendation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappComponentName()Name of the Application Component.static ConfigRecommendation.Builderbuilder()Map<DisruptionType,DisruptionCompliance>compliance()The current compliance against the resiliency policy before applying the configuration change.Map<String,DisruptionCompliance>complianceAsStrings()The current compliance against the resiliency policy before applying the configuration change.Costcost()The cost for the application.Stringdescription()The optional description for an app.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)HaArchitecturehaArchitecture()The architecture type.StringhaArchitectureAsString()The architecture type.booleanhasCompliance()For responses, this returns true if the service returned a value for the Compliance property.inthashCode()booleanhasRecommendationCompliance()For responses, this returns true if the service returned a value for the RecommendationCompliance property.booleanhasSuggestedChanges()For responses, this returns true if the service returned a value for the SuggestedChanges property.Stringname()The name of the recommendation configuration.ConfigRecommendationOptimizationTypeoptimizationType()The type of optimization.StringoptimizationTypeAsString()The type of optimization.Map<DisruptionType,RecommendationDisruptionCompliance>recommendationCompliance()The expected compliance against the resiliency policy after applying the configuration change.Map<String,RecommendationDisruptionCompliance>recommendationComplianceAsStrings()The expected compliance against the resiliency policy after applying the configuration change.StringreferenceId()Reference identifier for the recommendation configuration.List<SdkField<?>>sdkFields()static Class<? extends ConfigRecommendation.Builder>serializableBuilderClass()List<String>suggestedChanges()List of the suggested configuration changes.ConfigRecommendation.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
-
appComponentName
public final String appComponentName()
Name of the Application Component.
- Returns:
- Name of the Application Component.
-
compliance
public final Map<DisruptionType,DisruptionCompliance> compliance()
The current compliance against the resiliency policy before applying the configuration change.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCompliance()method.- Returns:
- The current compliance against the resiliency policy before applying the configuration change.
-
hasCompliance
public final boolean hasCompliance()
For responses, this returns true if the service returned a value for the Compliance property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
complianceAsStrings
public final Map<String,DisruptionCompliance> complianceAsStrings()
The current compliance against the resiliency policy before applying the configuration change.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCompliance()method.- Returns:
- The current compliance against the resiliency policy before applying the configuration change.
-
cost
public final Cost cost()
The cost for the application.
- Returns:
- The cost for the application.
-
description
public final String description()
The optional description for an app.
- Returns:
- The optional description for an app.
-
haArchitecture
public final HaArchitecture haArchitecture()
The architecture type.
If the service returns an enum value that is not available in the current SDK version,
haArchitecturewill returnHaArchitecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhaArchitectureAsString().- Returns:
- The architecture type.
- See Also:
HaArchitecture
-
haArchitectureAsString
public final String haArchitectureAsString()
The architecture type.
If the service returns an enum value that is not available in the current SDK version,
haArchitecturewill returnHaArchitecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhaArchitectureAsString().- Returns:
- The architecture type.
- See Also:
HaArchitecture
-
name
public final String name()
The name of the recommendation configuration.
- Returns:
- The name of the recommendation configuration.
-
optimizationType
public final ConfigRecommendationOptimizationType optimizationType()
The type of optimization.
If the service returns an enum value that is not available in the current SDK version,
optimizationTypewill returnConfigRecommendationOptimizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoptimizationTypeAsString().- Returns:
- The type of optimization.
- See Also:
ConfigRecommendationOptimizationType
-
optimizationTypeAsString
public final String optimizationTypeAsString()
The type of optimization.
If the service returns an enum value that is not available in the current SDK version,
optimizationTypewill returnConfigRecommendationOptimizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoptimizationTypeAsString().- Returns:
- The type of optimization.
- See Also:
ConfigRecommendationOptimizationType
-
recommendationCompliance
public final Map<DisruptionType,RecommendationDisruptionCompliance> recommendationCompliance()
The expected compliance against the resiliency policy after applying the configuration change.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRecommendationCompliance()method.- Returns:
- The expected compliance against the resiliency policy after applying the configuration change.
-
hasRecommendationCompliance
public final boolean hasRecommendationCompliance()
For responses, this returns true if the service returned a value for the RecommendationCompliance property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
recommendationComplianceAsStrings
public final Map<String,RecommendationDisruptionCompliance> recommendationComplianceAsStrings()
The expected compliance against the resiliency policy after applying the configuration change.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRecommendationCompliance()method.- Returns:
- The expected compliance against the resiliency policy after applying the configuration change.
-
referenceId
public final String referenceId()
Reference identifier for the recommendation configuration.
- Returns:
- Reference identifier for the recommendation configuration.
-
hasSuggestedChanges
public final boolean hasSuggestedChanges()
For responses, this returns true if the service returned a value for the SuggestedChanges property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
suggestedChanges
public final List<String> suggestedChanges()
List of the suggested configuration changes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSuggestedChanges()method.- Returns:
- List of the suggested configuration changes.
-
toBuilder
public ConfigRecommendation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConfigRecommendation.Builder,ConfigRecommendation>
-
builder
public static ConfigRecommendation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConfigRecommendation.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.
-
-