SecondaryConsent Class
- java.
lang. Object - com.
azure. resourcemanager. support. models. SecondaryConsent
- com.
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 Secondary |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Secondary |
fromJson(JsonReader jsonReader)
Reads an instance of Secondary |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The service name for which the secondary consent is being provided. |
|
User |
userConsent()
Get the user |
| void |
validate()
Validates the instance. |
|
Secondary |
withType(String type)
Set the type property: The service name for which the secondary consent is being provided. |
|
Secondary |
withUserConsent(UserConsent userConsent)
Set the user |
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:
Returns:
Throws:
toJson
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:
userConsent
public UserConsent userConsent()
Get the userConsent property: User consent value provided.
Returns:
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:
Returns:
withUserConsent
public SecondaryConsent withUserConsent(UserConsent userConsent)
Set the userConsent property: User consent value provided.
Parameters:
Returns: