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 Details

    • ResiliencyRecommendationComponents

      public ResiliencyRecommendationComponents()
      Creates an instance of ResiliencyRecommendationComponents class.
  • Method Details

    • name

      public String 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

      public String currentScore()
      Get the currentScore property: Current Score of the gateway.
      Returns:
      the currentScore value.
    • withCurrentScore

      public ResiliencyRecommendationComponents withCurrentScore(String currentScore)
      Set the currentScore property: Current Score of the gateway.
      Parameters:
      currentScore - the currentScore value to set.
      Returns:
      the ResiliencyRecommendationComponents object itself.
    • maxScore

      public String maxScore()
      Get the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.
      Returns:
      the maxScore value.
    • withMaxScore

      public ResiliencyRecommendationComponents withMaxScore(String maxScore)
      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

      public List<GatewayResiliencyRecommendation> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.