SecurityAssessmentMetadataPartnerData Class

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

Implements

public final class SecurityAssessmentMetadataPartnerData
implements JsonSerializable<SecurityAssessmentMetadataPartnerData>

Describes the partner that created the assessment.

Constructor Summary

Constructor Description
SecurityAssessmentMetadataPartnerData()

Creates an instance of SecurityAssessmentMetadataPartnerData class.

Method Summary

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

Reads an instance of SecurityAssessmentMetadataPartnerData from the JsonReader.

String partnerName()

Get the partnerName property: Name of the company of the partner.

String productName()

Get the productName property: Name of the product of the partner that created the assessment.

String secret()

Get the secret property: Secret to authenticate the partner and verify it created the assessment - write only.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityAssessmentMetadataPartnerData withPartnerName(String partnerName)

Set the partnerName property: Name of the company of the partner.

SecurityAssessmentMetadataPartnerData withProductName(String productName)

Set the productName property: Name of the product of the partner that created the assessment.

SecurityAssessmentMetadataPartnerData withSecret(String secret)

Set the secret property: Secret to authenticate the partner and verify it created the assessment - write only.

Methods inherited from java.lang.Object

Constructor Details

SecurityAssessmentMetadataPartnerData

public SecurityAssessmentMetadataPartnerData()

Creates an instance of SecurityAssessmentMetadataPartnerData class.

Method Details

fromJson

public static SecurityAssessmentMetadataPartnerData fromJson(JsonReader jsonReader)

Reads an instance of SecurityAssessmentMetadataPartnerData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

partnerName

public String partnerName()

Get the partnerName property: Name of the company of the partner.

Returns:

the partnerName value.

productName

public String productName()

Get the productName property: Name of the product of the partner that created the assessment.

Returns:

the productName value.

secret

public String secret()

Get the secret property: Secret to authenticate the partner and verify it created the assessment - write only.

Returns:

the secret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPartnerName

public SecurityAssessmentMetadataPartnerData withPartnerName(String partnerName)

Set the partnerName property: Name of the company of the partner.

Parameters:

partnerName - the partnerName value to set.

Returns:

the SecurityAssessmentMetadataPartnerData object itself.

withProductName

public SecurityAssessmentMetadataPartnerData withProductName(String productName)

Set the productName property: Name of the product of the partner that created the assessment.

Parameters:

productName - the productName value to set.

Returns:

the SecurityAssessmentMetadataPartnerData object itself.

withSecret

public SecurityAssessmentMetadataPartnerData withSecret(String secret)

Set the secret property: Secret to authenticate the partner and verify it created the assessment - write only.

Parameters:

secret - the secret value to set.

Returns:

the SecurityAssessmentMetadataPartnerData object itself.

Applies to