EnableRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.EnableRequest

Implements

public final class EnableRequest
implements JsonSerializable<EnableRequest>

Describes a receiver that should be resubscribed.

Constructor Summary

Constructor Description
EnableRequest()

Creates an instance of EnableRequest class.

Method Summary

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

Reads an instance of EnableRequest from the JsonReader.

String receiverName()

Get the receiverName property: The name of the receiver to resubscribe.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EnableRequest withReceiverName(String receiverName)

Set the receiverName property: The name of the receiver to resubscribe.

Methods inherited from java.lang.Object

Constructor Details

EnableRequest

public EnableRequest()

Creates an instance of EnableRequest class.

Method Details

fromJson

public static EnableRequest fromJson(JsonReader jsonReader)

Reads an instance of EnableRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

receiverName

public String receiverName()

Get the receiverName property: The name of the receiver to resubscribe.

Returns:

the receiverName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReceiverName

public EnableRequest withReceiverName(String receiverName)

Set the receiverName property: The name of the receiver to resubscribe.

Parameters:

receiverName - the receiverName value to set.

Returns:

the EnableRequest object itself.

Applies to

Azure SDK for Java

Latest