Class GatewayResiliencyInformationInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.GatewayResiliencyInformationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayResiliencyInformationInner>
public final class GatewayResiliencyInformationInner
extends Object
implements com.azure.json.JsonSerializable<GatewayResiliencyInformationInner>
Gateway Resiliency Information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayResiliencyInformationInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the components property: List of Resiliency based Recommendation Components for the gateway.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayResiliencyInformationInner from the JsonReader.Get the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for the gateway.Get the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the recommendations are applied for the gateway.Get the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the recommendations is applied for the gateway.Get the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency score for the gateway.Get the overallScore property: Current Resiliency Score for the gateway.Get the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComponents(List<ResiliencyRecommendationComponents> components) Set the components property: List of Resiliency based Recommendation Components for the gateway.withLastComputedTime(OffsetDateTime lastComputedTime) Set the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for the gateway.withMaxScoreFromRecommendations(String maxScoreFromRecommendations) Set the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the recommendations are applied for the gateway.withMinScoreFromRecommendations(String minScoreFromRecommendations) Set the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the recommendations is applied for the gateway.withNextEligibleComputeTime(OffsetDateTime nextEligibleComputeTime) Set the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency score for the gateway.withOverallScore(String overallScore) Set the overallScore property: Current Resiliency Score for the gateway.withScoreChange(String scoreChange) Set the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score.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
-
GatewayResiliencyInformationInner
public GatewayResiliencyInformationInner()Creates an instance of GatewayResiliencyInformationInner class.
-
-
Method Details
-
overallScore
Get the overallScore property: Current Resiliency Score for the gateway.- Returns:
- the overallScore value.
-
withOverallScore
Set the overallScore property: Current Resiliency Score for the gateway.- Parameters:
overallScore- the overallScore value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
scoreChange
Get the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score.- Returns:
- the scoreChange value.
-
withScoreChange
Set the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score.- Parameters:
scoreChange- the scoreChange value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
minScoreFromRecommendations
Get the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the recommendations is applied for the gateway.- Returns:
- the minScoreFromRecommendations value.
-
withMinScoreFromRecommendations
public GatewayResiliencyInformationInner withMinScoreFromRecommendations(String minScoreFromRecommendations) Set the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the recommendations is applied for the gateway.- Parameters:
minScoreFromRecommendations- the minScoreFromRecommendations value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
maxScoreFromRecommendations
Get the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the recommendations are applied for the gateway.- Returns:
- the maxScoreFromRecommendations value.
-
withMaxScoreFromRecommendations
public GatewayResiliencyInformationInner withMaxScoreFromRecommendations(String maxScoreFromRecommendations) Set the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the recommendations are applied for the gateway.- Parameters:
maxScoreFromRecommendations- the maxScoreFromRecommendations value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
lastComputedTime
Get the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for the gateway.- Returns:
- the lastComputedTime value.
-
withLastComputedTime
Set the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for the gateway.- Parameters:
lastComputedTime- the lastComputedTime value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
nextEligibleComputeTime
Get the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency score for the gateway.- Returns:
- the nextEligibleComputeTime value.
-
withNextEligibleComputeTime
public GatewayResiliencyInformationInner withNextEligibleComputeTime(OffsetDateTime nextEligibleComputeTime) Set the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency score for the gateway.- Parameters:
nextEligibleComputeTime- the nextEligibleComputeTime value to set.- Returns:
- the GatewayResiliencyInformationInner object itself.
-
components
Get the components property: List of Resiliency based Recommendation Components for the gateway.- Returns:
- the components value.
-
withComponents
public GatewayResiliencyInformationInner withComponents(List<ResiliencyRecommendationComponents> components) Set the components property: List of Resiliency based Recommendation Components for the gateway.- Parameters:
components- the components value to set.- Returns:
- the GatewayResiliencyInformationInner 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<GatewayResiliencyInformationInner>- Throws:
IOException
-
fromJson
public static GatewayResiliencyInformationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayResiliencyInformationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayResiliencyInformationInner 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 GatewayResiliencyInformationInner.
-