SecurityAssessmentPropertiesBaseRisk Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. SecurityAssessmentPropertiesBaseRisk
- com.
Implements
public final class SecurityAssessmentPropertiesBaseRisk
implements JsonSerializable<SecurityAssessmentPropertiesBaseRisk>
External model of risk result.
Constructor Summary
| Constructor | Description |
|---|---|
| SecurityAssessmentPropertiesBaseRisk() |
Creates an instance of Security |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
attackPathsReferences()
Get the attack |
|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
| Boolean |
isContextualRisk()
Get the is |
|
Risk |
level()
Get the level property: The risk level. |
|
List<Security |
paths()
Get the paths property: The paths property. |
| List<String> |
riskFactors()
Get the risk |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Security |
withAttackPathsReferences(List<String> attackPathsReferences)
Set the attack |
|
Security |
withIsContextualRisk(Boolean isContextualRisk)
Set the is |
|
Security |
withLevel(RiskLevel level)
Set the level property: The risk level. |
|
Security |
withPaths(List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths)
Set the paths property: The paths property. |
|
Security |
withRiskFactors(List<String> riskFactors)
Set the risk |
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:
fromJson
public static SecurityAssessmentPropertiesBaseRisk fromJson(JsonReader jsonReader)
Reads an instance of SecurityAssessmentPropertiesBaseRisk from the JsonReader.
Parameters:
Returns:
Throws:
isContextualRisk
public Boolean isContextualRisk()
Get the isContextualRisk property: Indicates if the risk is contextual or static.
Returns:
level
public RiskLevel level()
Get the level property: The risk level.
Returns:
paths
public List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths()
Get the paths property: The paths property.
Returns:
riskFactors
public List<String> riskFactors()
Get the riskFactors property: The factors of the risk adding base factor.
Returns:
toJson
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:
Returns:
withIsContextualRisk
public SecurityAssessmentPropertiesBaseRisk withIsContextualRisk(Boolean isContextualRisk)
Set the isContextualRisk property: Indicates if the risk is contextual or static.
Parameters:
Returns:
withLevel
public SecurityAssessmentPropertiesBaseRisk withLevel(RiskLevel level)
Set the level property: The risk level.
Parameters:
Returns:
withPaths
public SecurityAssessmentPropertiesBaseRisk withPaths(List<SecurityAssessmentPropertiesBaseRiskPathsItem> paths)
Set the paths property: The paths property.
Parameters:
Returns:
withRiskFactors
public SecurityAssessmentPropertiesBaseRisk withRiskFactors(List<String> riskFactors)
Set the riskFactors property: The factors of the risk adding base factor.
Parameters:
Returns: