SecureScoreItemInner Class

public final class SecureScoreItemInner
extends ProxyResource

Secure score item data model.

Constructor Summary

Constructor Description
SecureScoreItemInner()

Creates an instance of SecureScoreItemInner class.

Method Summary

Modifier and Type Method and Description
Double current()

Get the current property: Current score.

String displayName()

Get the displayName property: The initiative’s name.

static SecureScoreItemInner fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreItemInner from the JsonReader.

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.

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.

void validate()

Validates the instance.

Long weight()

Get the weight property: The relative weight for each subscription.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SecureScoreItemInner

public SecureScoreItemInner()

Creates an instance of SecureScoreItemInner class.

Method Details

current

public Double current()

Get the current property: Current score.

Returns:

the current value.

displayName

public String displayName()

Get the displayName property: The initiative’s name.

Returns:

the displayName value.

fromJson

public static SecureScoreItemInner fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreItemInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecureScoreItemInner 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.

id

public String id()

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

Overrides:

SecureScoreItemInner.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:

SecureScoreItemInner.name()

Returns:

the name 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:

SecureScoreItemInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecureScoreItemInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

weight

public Long weight()

Get the weight property: The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions.

Returns:

the weight value.

Applies to