SecurityAssessmentPropertiesBaseRiskPathsItemEdge Class

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

Implements

public final class SecurityAssessmentPropertiesBaseRiskPathsItemEdge
implements JsonSerializable<SecurityAssessmentPropertiesBaseRiskPathsItemEdge>

The SecurityAssessmentPropertiesBaseRiskPathsItemEdge model.

Constructor Summary

Constructor Description
SecurityAssessmentPropertiesBaseRiskPathsItemEdge()

Creates an instance of SecurityAssessmentPropertiesBaseRiskPathsItemEdge class.

Method Summary

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

Reads an instance of SecurityAssessmentPropertiesBaseRiskPathsItemEdge from the JsonReader.

String id()

Get the id property: Edge identifier.

String sourceId()

Get the sourceId property: Source node identifier.

String targetId()

Get the targetId property: Target node identifier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityAssessmentPropertiesBaseRiskPathsItemEdge withId(String id)

Set the id property: Edge identifier.

SecurityAssessmentPropertiesBaseRiskPathsItemEdge withSourceId(String sourceId)

Set the sourceId property: Source node identifier.

SecurityAssessmentPropertiesBaseRiskPathsItemEdge withTargetId(String targetId)

Set the targetId property: Target node identifier.

Methods inherited from java.lang.Object

Constructor Details

SecurityAssessmentPropertiesBaseRiskPathsItemEdge

public SecurityAssessmentPropertiesBaseRiskPathsItemEdge()

Creates an instance of SecurityAssessmentPropertiesBaseRiskPathsItemEdge class.

Method Details

fromJson

public static SecurityAssessmentPropertiesBaseRiskPathsItemEdge fromJson(JsonReader jsonReader)

Reads an instance of SecurityAssessmentPropertiesBaseRiskPathsItemEdge from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityAssessmentPropertiesBaseRiskPathsItemEdge if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Edge identifier.

Returns:

the id value.

sourceId

public String sourceId()

Get the sourceId property: Source node identifier.

Returns:

the sourceId value.

targetId

public String targetId()

Get the targetId property: Target node identifier.

Returns:

the targetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public SecurityAssessmentPropertiesBaseRiskPathsItemEdge withId(String id)

Set the id property: Edge identifier.

Parameters:

id - the id value to set.

Returns:

the SecurityAssessmentPropertiesBaseRiskPathsItemEdge object itself.

withSourceId

public SecurityAssessmentPropertiesBaseRiskPathsItemEdge withSourceId(String sourceId)

Set the sourceId property: Source node identifier.

Parameters:

sourceId - the sourceId value to set.

Returns:

the SecurityAssessmentPropertiesBaseRiskPathsItemEdge object itself.

withTargetId

public SecurityAssessmentPropertiesBaseRiskPathsItemEdge withTargetId(String targetId)

Set the targetId property: Target node identifier.

Parameters:

targetId - the targetId value to set.

Returns:

the SecurityAssessmentPropertiesBaseRiskPathsItemEdge object itself.

Applies to