Class ResiliencyRecommendationComponents
java.lang.Object
com.azure.resourcemanager.network.models.ResiliencyRecommendationComponents
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResiliencyRecommendationComponents>
public final class ResiliencyRecommendationComponents
extends Object
implements com.azure.json.JsonSerializable<ResiliencyRecommendationComponents>
Gateway Resiliency based Recommendations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResiliencyRecommendationComponents class. -
Method Summary
Modifier and TypeMethodDescriptionGet the currentScore property: Current Score of the gateway.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResiliencyRecommendationComponents from the JsonReader.maxScore()Get the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.name()Get the name property: Name of the Resiliency based Recommendation Component.Get the recommendations property: List of Gateway Resiliency based Recommendations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCurrentScore(String currentScore) Set the currentScore property: Current Score of the gateway.withMaxScore(String maxScore) Set the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.Set the name property: Name of the Resiliency based Recommendation Component.withRecommendations(List<GatewayResiliencyRecommendation> recommendations) Set the recommendations property: List of Gateway Resiliency based Recommendations.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResiliencyRecommendationComponents
public ResiliencyRecommendationComponents()Creates an instance of ResiliencyRecommendationComponents class.
-
-
Method Details
-
name
Get the name property: Name of the Resiliency based Recommendation Component.- Returns:
- the name value.
-
withName
Set the name property: Name of the Resiliency based Recommendation Component.- Parameters:
name- the name value to set.- Returns:
- the ResiliencyRecommendationComponents object itself.
-
currentScore
Get the currentScore property: Current Score of the gateway.- Returns:
- the currentScore value.
-
withCurrentScore
Set the currentScore property: Current Score of the gateway.- Parameters:
currentScore- the currentScore value to set.- Returns:
- the ResiliencyRecommendationComponents object itself.
-
maxScore
Get the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.- Returns:
- the maxScore value.
-
withMaxScore
Set the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.- Parameters:
maxScore- the maxScore value to set.- Returns:
- the ResiliencyRecommendationComponents object itself.
-
recommendations
Get the recommendations property: List of Gateway Resiliency based Recommendations.- Returns:
- the recommendations value.
-
withRecommendations
public ResiliencyRecommendationComponents withRecommendations(List<GatewayResiliencyRecommendation> recommendations) Set the recommendations property: List of Gateway Resiliency based Recommendations.- Parameters:
recommendations- the recommendations value to set.- Returns:
- the ResiliencyRecommendationComponents object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResiliencyRecommendationComponents>- Throws:
IOException
-
fromJson
public static ResiliencyRecommendationComponents fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResiliencyRecommendationComponents from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResiliencyRecommendationComponents if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResiliencyRecommendationComponents.
-