IssueCreationRequest Class

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

Implements

public final class IssueCreationRequest
implements JsonSerializable<IssueCreationRequest>

The issue creation request model.

Constructor Summary

Constructor Description
IssueCreationRequest()

Creates an instance of IssueCreationRequest class.

Method Summary

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

Reads an instance of IssueCreationRequest from the JsonReader.

String securityAssessmentResourceId()

Get the securityAssessmentResourceId property: The security assessment resource id that the issue will be opened based on.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IssueCreationRequest withSecurityAssessmentResourceId(String securityAssessmentResourceId)

Set the securityAssessmentResourceId property: The security assessment resource id that the issue will be opened based on.

Methods inherited from java.lang.Object

Constructor Details

IssueCreationRequest

public IssueCreationRequest()

Creates an instance of IssueCreationRequest class.

Method Details

fromJson

public static IssueCreationRequest fromJson(JsonReader jsonReader)

Reads an instance of IssueCreationRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

securityAssessmentResourceId

public String securityAssessmentResourceId()

Get the securityAssessmentResourceId property: The security assessment resource id that the issue will be opened based on.

Returns:

the securityAssessmentResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecurityAssessmentResourceId

public IssueCreationRequest withSecurityAssessmentResourceId(String securityAssessmentResourceId)

Set the securityAssessmentResourceId property: The security assessment resource id that the issue will be opened based on.

Parameters:

securityAssessmentResourceId - the securityAssessmentResourceId value to set.

Returns:

the IssueCreationRequest object itself.

Applies to