Condividi tramite


ResiliencyRecommendationComponents Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ResiliencyRecommendationComponents

Implements

public final class ResiliencyRecommendationComponents
implements JsonSerializable<ResiliencyRecommendationComponents>

Gateway Resiliency based Recommendations.

Constructor Summary

Constructor Description
ResiliencyRecommendationComponents()

Creates an instance of ResiliencyRecommendationComponents class.

Method Summary

Modifier and Type Method and Description
String currentScore()

Get the currentScore property: Current Score of the gateway.

static ResiliencyRecommendationComponents fromJson(JsonReader jsonReader)

Reads an instance of ResiliencyRecommendationComponents from the JsonReader.

String maxScore()

Get the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.

String name()

Get the name property: Name of the Resiliency based Recommendation Component.

List<GatewayResiliencyRecommendation> recommendations()

Get the recommendations property: List of Gateway Resiliency based Recommendations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResiliencyRecommendationComponents withCurrentScore(String currentScore)

Set the currentScore property: Current Score of the gateway.

ResiliencyRecommendationComponents withMaxScore(String maxScore)

Set the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied.

ResiliencyRecommendationComponents withName(String name)

Set the name property: Name of the Resiliency based Recommendation Component.

ResiliencyRecommendationComponents withRecommendations(List<GatewayResiliencyRecommendation> recommendations)

Set the recommendations property: List of Gateway Resiliency based Recommendations.

Methods inherited from java.lang.Object

Constructor Details

ResiliencyRecommendationComponents

public ResiliencyRecommendationComponents()

Creates an instance of ResiliencyRecommendationComponents class.

Method Details

currentScore

public String currentScore()

Get the currentScore property: Current Score of the gateway.

Returns:

the currentScore value.

fromJson

public static ResiliencyRecommendationComponents fromJson(JsonReader jsonReader)

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.

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.

name

public String name()

Get the name property: Name of the Resiliency based Recommendation Component.

Returns:

the name value.

recommendations

public List<GatewayResiliencyRecommendation> recommendations()

Get the recommendations property: List of Gateway Resiliency based Recommendations.

Returns:

the recommendations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withName

public ResiliencyRecommendationComponents withName(String name)

Set the name property: Name of the Resiliency based Recommendation Component.

Parameters:

name - the name value to set.

Returns:

the ResiliencyRecommendationComponents object itself.

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.

Applies to