SecureScoreControlDetailsInner Class

public final class SecureScoreControlDetailsInner
extends ProxyResource

Details of the security control, its score, and the health status of the relevant resources.

Constructor Summary

Constructor Description
SecureScoreControlDetailsInner()

Creates an instance of SecureScoreControlDetailsInner class.

Method Summary

Modifier and Type Method and Description
Double current()

Get the current property: Current score.

SecureScoreControlDefinitionItemInner definition()

Get the definition property: Information about the security control.

String displayName()

Get the displayName property: User friendly display name of the control.

static SecureScoreControlDetailsInner fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreControlDetailsInner from the JsonReader.

Integer healthyResourceCount()

Get the healthyResourceCount property: Number of healthy resources in the control.

String id()

Get the id property: Fully qualified resource Id for the resource.

Integer max()

Get the max property: Maximum score available.

String name()

Get the name property: The name of the resource.

Integer notApplicableResourceCount()

Get the notApplicableResourceCount property: Number of not applicable resources in the control.

Double percentage()

Get the percentage property: Ratio of the current score divided by the maximum.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Integer unhealthyResourceCount()

Get the unhealthyResourceCount property: Number of unhealthy resources in the control.

void validate()

Validates the instance.

Long weight()

Get the weight property: The relative weight for this specific control in each of your subscriptions.

SecureScoreControlDetailsInner withDefinition(SecureScoreControlDefinitionItemInner definition)

Set the definition property: Information about the security control.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SecureScoreControlDetailsInner

public SecureScoreControlDetailsInner()

Creates an instance of SecureScoreControlDetailsInner class.

Method Details

current

public Double current()

Get the current property: Current score.

Returns:

the current value.

definition

public SecureScoreControlDefinitionItemInner definition()

Get the definition property: Information about the security control.

Returns:

the definition value.

displayName

public String displayName()

Get the displayName property: User friendly display name of the control.

Returns:

the displayName value.

fromJson

public static SecureScoreControlDetailsInner fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreControlDetailsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecureScoreControlDetailsInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

healthyResourceCount

public Integer healthyResourceCount()

Get the healthyResourceCount property: Number of healthy resources in the control.

Returns:

the healthyResourceCount value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SecureScoreControlDetailsInner.id()

Returns:

the id value.

max

public Integer max()

Get the max property: Maximum score available.

Returns:

the max value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SecureScoreControlDetailsInner.name()

Returns:

the name value.

notApplicableResourceCount

public Integer notApplicableResourceCount()

Get the notApplicableResourceCount property: Number of not applicable resources in the control.

Returns:

the notApplicableResourceCount value.

percentage

public Double percentage()

Get the percentage property: Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point.

Returns:

the percentage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SecureScoreControlDetailsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecureScoreControlDetailsInner.type()

Returns:

the type value.

unhealthyResourceCount

public Integer unhealthyResourceCount()

Get the unhealthyResourceCount property: Number of unhealthy resources in the control.

Returns:

the unhealthyResourceCount value.

validate

public void validate()

Validates the instance.

weight

public Long weight()

Get the weight property: The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions.

Returns:

the weight value.

withDefinition

public SecureScoreControlDetailsInner withDefinition(SecureScoreControlDefinitionItemInner definition)

Set the definition property: Information about the security control.

Parameters:

definition - the definition value to set.

Returns:

the SecureScoreControlDetailsInner object itself.

Applies to