SecurityAssessmentPropertiesBaseRisk Class

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

Implements

public final class SecurityAssessmentPropertiesBaseRisk
implements JsonSerializable<SecurityAssessmentPropertiesBaseRisk>

External model of risk result.

Constructor Summary

Constructor Description
SecurityAssessmentPropertiesBaseRisk()

Creates an instance of SecurityAssessmentPropertiesBaseRisk class.

Method Summary

Modifier and Type Method and Description
List<String> attackPathsReferences()

Get the attackPathsReferences property: The attack paths references of the risk.

static SecurityAssessmentPropertiesBaseRisk fromJson(JsonReader jsonReader)

Reads an instance of SecurityAssessmentPropertiesBaseRisk from the JsonReader.

Boolean isContextualRisk()

Get the isContextualRisk property: Indicates if the risk is contextual or static.

RiskLevel level()

Get the level property: The risk level.

List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths()

Get the paths property: The paths property.

List<String> riskFactors()

Get the riskFactors property: The factors of the risk adding base factor.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityAssessmentPropertiesBaseRisk withAttackPathsReferences(List<String> attackPathsReferences)

Set the attackPathsReferences property: The attack paths references of the risk.

SecurityAssessmentPropertiesBaseRisk withIsContextualRisk(Boolean isContextualRisk)

Set the isContextualRisk property: Indicates if the risk is contextual or static.

SecurityAssessmentPropertiesBaseRisk withLevel(RiskLevel level)

Set the level property: The risk level.

SecurityAssessmentPropertiesBaseRisk withPaths(List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths)

Set the paths property: The paths property.

SecurityAssessmentPropertiesBaseRisk withRiskFactors(List<String> riskFactors)

Set the riskFactors property: The factors of the risk adding base factor.

Methods inherited from java.lang.Object

Constructor Details

SecurityAssessmentPropertiesBaseRisk

public SecurityAssessmentPropertiesBaseRisk()

Creates an instance of SecurityAssessmentPropertiesBaseRisk class.

Method Details

attackPathsReferences

public List<String> attackPathsReferences()

Get the attackPathsReferences property: The attack paths references of the risk.

Returns:

the attackPathsReferences value.

fromJson

public static SecurityAssessmentPropertiesBaseRisk fromJson(JsonReader jsonReader)

Reads an instance of SecurityAssessmentPropertiesBaseRisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isContextualRisk

public Boolean isContextualRisk()

Get the isContextualRisk property: Indicates if the risk is contextual or static.

Returns:

the isContextualRisk value.

level

public RiskLevel level()

Get the level property: The risk level.

Returns:

the level value.

paths

public List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths()

Get the paths property: The paths property.

Returns:

the paths value.

riskFactors

public List<String> riskFactors()

Get the riskFactors property: The factors of the risk adding base factor.

Returns:

the riskFactors value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAttackPathsReferences

public SecurityAssessmentPropertiesBaseRisk withAttackPathsReferences(List<String> attackPathsReferences)

Set the attackPathsReferences property: The attack paths references of the risk.

Parameters:

attackPathsReferences - the attackPathsReferences value to set.

Returns:

the SecurityAssessmentPropertiesBaseRisk object itself.

withIsContextualRisk

public SecurityAssessmentPropertiesBaseRisk withIsContextualRisk(Boolean isContextualRisk)

Set the isContextualRisk property: Indicates if the risk is contextual or static.

Parameters:

isContextualRisk - the isContextualRisk value to set.

Returns:

the SecurityAssessmentPropertiesBaseRisk object itself.

withLevel

public SecurityAssessmentPropertiesBaseRisk withLevel(RiskLevel level)

Set the level property: The risk level.

Parameters:

level - the level value to set.

Returns:

the SecurityAssessmentPropertiesBaseRisk object itself.

withPaths

public SecurityAssessmentPropertiesBaseRisk withPaths(List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths)

Set the paths property: The paths property.

Parameters:

paths - the paths value to set.

Returns:

the SecurityAssessmentPropertiesBaseRisk object itself.

withRiskFactors

public SecurityAssessmentPropertiesBaseRisk withRiskFactors(List<String> riskFactors)

Set the riskFactors property: The factors of the risk adding base factor.

Parameters:

riskFactors - the riskFactors value to set.

Returns:

the SecurityAssessmentPropertiesBaseRisk object itself.

Applies to