RulesResultsInput Class

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

Implements

public final class RulesResultsInput
implements JsonSerializable<RulesResultsInput>

Rules results input.

Constructor Summary

Constructor Description
RulesResultsInput()

Creates an instance of RulesResultsInput class.

Method Summary

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

Reads an instance of RulesResultsInput from the JsonReader.

Boolean latestScan()

Get the latestScan property: Take results from latest scan.

Map<String,List<List<String>>> results()

Get the results property: Expected results to be inserted into the baseline.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RulesResultsInput withLatestScan(Boolean latestScan)

Set the latestScan property: Take results from latest scan.

RulesResultsInput withResults(Map<String,List<List<String>>> results)

Set the results property: Expected results to be inserted into the baseline.

Methods inherited from java.lang.Object

Constructor Details

RulesResultsInput

public RulesResultsInput()

Creates an instance of RulesResultsInput class.

Method Details

fromJson

public static RulesResultsInput fromJson(JsonReader jsonReader)

Reads an instance of RulesResultsInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

latestScan

public Boolean latestScan()

Get the latestScan property: Take results from latest scan.

Returns:

the latestScan value.

results

public Map<String,List<List<String>>> results()

Get the results property: Expected results to be inserted into the baseline. Leave this field empty if latestScan == true.

Returns:

the results value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLatestScan

public RulesResultsInput withLatestScan(Boolean latestScan)

Set the latestScan property: Take results from latest scan.

Parameters:

latestScan - the latestScan value to set.

Returns:

the RulesResultsInput object itself.

withResults

public RulesResultsInput withResults(Map<String,List<List<String>>> results)

Set the results property: Expected results to be inserted into the baseline. Leave this field empty if latestScan == true.

Parameters:

results - the results value to set.

Returns:

the RulesResultsInput object itself.

Applies to