SecureScoreControlDefinitionSource Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.SecureScoreControlDefinitionSource

Implements

public final class SecureScoreControlDefinitionSource
implements JsonSerializable<SecureScoreControlDefinitionSource>

The type of the security control (For example, BuiltIn).

Constructor Summary

Constructor Description
SecureScoreControlDefinitionSource()

Creates an instance of SecureScoreControlDefinitionSource class.

Method Summary

Modifier and Type Method and Description
static SecureScoreControlDefinitionSource fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreControlDefinitionSource from the JsonReader.

ControlType sourceType()

Get the sourceType property: The type of security control (for example, BuiltIn).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecureScoreControlDefinitionSource withSourceType(ControlType sourceType)

Set the sourceType property: The type of security control (for example, BuiltIn).

Methods inherited from java.lang.Object

Constructor Details

SecureScoreControlDefinitionSource

public SecureScoreControlDefinitionSource()

Creates an instance of SecureScoreControlDefinitionSource class.

Method Details

fromJson

public static SecureScoreControlDefinitionSource fromJson(JsonReader jsonReader)

Reads an instance of SecureScoreControlDefinitionSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceType

public ControlType sourceType()

Get the sourceType property: The type of security control (for example, BuiltIn).

Returns:

the sourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSourceType

public SecureScoreControlDefinitionSource withSourceType(ControlType sourceType)

Set the sourceType property: The type of security control (for example, BuiltIn).

Parameters:

sourceType - the sourceType value to set.

Returns:

the SecureScoreControlDefinitionSource object itself.

Applies to