Class TestRecommendation
- java.lang.Object
-
- software.amazon.awssdk.services.resiliencehub.model.TestRecommendation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TestRecommendation.Builder,TestRecommendation>
@Generated("software.amazon.awssdk:codegen") public final class TestRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TestRecommendation.Builder,TestRecommendation>
Defines a test recommendation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTestRecommendation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappComponentName()Name of the Application Component.static TestRecommendation.Builderbuilder()List<String>dependsOnAlarms()A list of recommended alarms that are used in the test and must be exported before or with the test.Stringdescription()Description for the test recommendation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasDependsOnAlarms()For responses, this returns true if the service returned a value for the DependsOnAlarms property.inthashCode()booleanhasItems()For responses, this returns true if the service returned a value for the Items property.Stringintent()Intent of the test recommendation.List<RecommendationItem>items()The test recommendation items.Stringname()Name of the test recommendation.Stringprerequisite()Prerequisite of the test recommendation.StringrecommendationId()Identifier for the test recommendation.RecommendationStatusrecommendationStatus()Status of the recommended test.StringrecommendationStatusAsString()Status of the recommended test.StringreferenceId()Reference identifier for the test recommendation.TestRiskrisk()Level of risk for this test recommendation.StringriskAsString()Level of risk for this test recommendation.List<SdkField<?>>sdkFields()static Class<? extends TestRecommendation.Builder>serializableBuilderClass()TestRecommendation.BuildertoBuilder()StringtoString()Returns a string representation of this object.TestTypetype()Type of test recommendation.StringtypeAsString()Type of test recommendation.-
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.
-
hasDependsOnAlarms
public final boolean hasDependsOnAlarms()
For responses, this returns true if the service returned a value for the DependsOnAlarms 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.
-
dependsOnAlarms
public final List<String> dependsOnAlarms()
A list of recommended alarms that are used in the test and must be exported before or with the test.
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
hasDependsOnAlarms()method.- Returns:
- A list of recommended alarms that are used in the test and must be exported before or with the test.
-
description
public final String description()
Description for the test recommendation.
- Returns:
- Description for the test recommendation.
-
intent
public final String intent()
Intent of the test recommendation.
- Returns:
- Intent of the test recommendation.
-
hasItems
public final boolean hasItems()
For responses, this returns true if the service returned a value for the Items 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.
-
items
public final List<RecommendationItem> items()
The test recommendation items.
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
hasItems()method.- Returns:
- The test recommendation items.
-
name
public final String name()
Name of the test recommendation.
- Returns:
- Name of the test recommendation.
-
prerequisite
public final String prerequisite()
Prerequisite of the test recommendation.
- Returns:
- Prerequisite of the test recommendation.
-
recommendationId
public final String recommendationId()
Identifier for the test recommendation.
- Returns:
- Identifier for the test recommendation.
-
recommendationStatus
public final RecommendationStatus recommendationStatus()
Status of the recommended test.
If the service returns an enum value that is not available in the current SDK version,
recommendationStatuswill returnRecommendationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecommendationStatusAsString().- Returns:
- Status of the recommended test.
- See Also:
RecommendationStatus
-
recommendationStatusAsString
public final String recommendationStatusAsString()
Status of the recommended test.
If the service returns an enum value that is not available in the current SDK version,
recommendationStatuswill returnRecommendationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecommendationStatusAsString().- Returns:
- Status of the recommended test.
- See Also:
RecommendationStatus
-
referenceId
public final String referenceId()
Reference identifier for the test recommendation.
- Returns:
- Reference identifier for the test recommendation.
-
risk
public final TestRisk risk()
Level of risk for this test recommendation.
If the service returns an enum value that is not available in the current SDK version,
riskwill returnTestRisk.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromriskAsString().- Returns:
- Level of risk for this test recommendation.
- See Also:
TestRisk
-
riskAsString
public final String riskAsString()
Level of risk for this test recommendation.
If the service returns an enum value that is not available in the current SDK version,
riskwill returnTestRisk.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromriskAsString().- Returns:
- Level of risk for this test recommendation.
- See Also:
TestRisk
-
type
public final TestType type()
Type of test recommendation.
If the service returns an enum value that is not available in the current SDK version,
typewill returnTestType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of test recommendation.
- See Also:
TestType
-
typeAsString
public final String typeAsString()
Type of test recommendation.
If the service returns an enum value that is not available in the current SDK version,
typewill returnTestType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of test recommendation.
- See Also:
TestType
-
toBuilder
public TestRecommendation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TestRecommendation.Builder,TestRecommendation>
-
builder
public static TestRecommendation.Builder builder()
-
serializableBuilderClass
public static Class<? extends TestRecommendation.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.
-
-