RuleResultsInput Class

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

Implements

public final class RuleResultsInput
implements JsonSerializable<RuleResultsInput>

Rule results input.

Constructor Summary

Constructor Description
RuleResultsInput()

Creates an instance of RuleResultsInput class.

Method Summary

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

Reads an instance of RuleResultsInput from the JsonReader.

Boolean latestScan()

Get the latestScan property: Take results from latest scan.

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.

RuleResultsInput withLatestScan(Boolean latestScan)

Set the latestScan property: Take results from latest scan.

RuleResultsInput withResults(List<List<String>> results)

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

Methods inherited from java.lang.Object

Constructor Details

RuleResultsInput

public RuleResultsInput()

Creates an instance of RuleResultsInput class.

Method Details

fromJson

public static RuleResultsInput fromJson(JsonReader jsonReader)

Reads an instance of RuleResultsInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

latestScan

public Boolean latestScan()

Get the latestScan property: Take results from latest scan.

Returns:

the latestScan value.

results

public 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 RuleResultsInput withLatestScan(Boolean latestScan)

Set the latestScan property: Take results from latest scan.

Parameters:

latestScan - the latestScan value to set.

Returns:

the RuleResultsInput object itself.

withResults

public RuleResultsInput withResults(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 RuleResultsInput object itself.

Applies to