SecondaryConsent Class

  • java.lang.Object
    • com.azure.resourcemanager.support.models.SecondaryConsent

Implements

public final class SecondaryConsent
implements JsonSerializable<SecondaryConsent>

This property indicates secondary consent for the support ticket.

Constructor Summary

Constructor Description
SecondaryConsent()

Creates an instance of SecondaryConsent class.

Method Summary

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

Reads an instance of SecondaryConsent from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The service name for which the secondary consent is being provided.

UserConsent userConsent()

Get the userConsent property: User consent value provided.

void validate()

Validates the instance.

SecondaryConsent withType(String type)

Set the type property: The service name for which the secondary consent is being provided.

SecondaryConsent withUserConsent(UserConsent userConsent)

Set the userConsent property: User consent value provided.

Methods inherited from java.lang.Object

Constructor Details

SecondaryConsent

public SecondaryConsent()

Creates an instance of SecondaryConsent class.

Method Details

fromJson

public static SecondaryConsent fromJson(JsonReader jsonReader)

Reads an instance of SecondaryConsent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The service name for which the secondary consent is being provided. The value needs to be retrieved from the Problem Classification API response.

Returns:

the type value.

userConsent

public UserConsent userConsent()

Get the userConsent property: User consent value provided.

Returns:

the userConsent value.

validate

public void validate()

Validates the instance.

withType

public SecondaryConsent withType(String type)

Set the type property: The service name for which the secondary consent is being provided. The value needs to be retrieved from the Problem Classification API response.

Parameters:

type - the type value to set.

Returns:

the SecondaryConsent object itself.

withUserConsent

public SecondaryConsent withUserConsent(UserConsent userConsent)

Set the userConsent property: User consent value provided.

Parameters:

userConsent - the userConsent value to set.

Returns:

the SecondaryConsent object itself.

Applies to