Condividi tramite


EventGridAndResourceGraph Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.EventGridAndResourceGraph

Implements

public final class EventGridAndResourceGraph
implements JsonSerializable<EventGridAndResourceGraph>

Specifies eventGridAndResourceGraph related Scheduled Event related configurations.

Constructor Summary

Constructor Description
EventGridAndResourceGraph()

Creates an instance of EventGridAndResourceGraph class.

Method Summary

Modifier and Type Method and Description
Boolean enable()

Get the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

static EventGridAndResourceGraph fromJson(JsonReader jsonReader)

Reads an instance of EventGridAndResourceGraph from the JsonReader.

String scheduledEventsApiVersion()

Get the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EventGridAndResourceGraph withEnable(Boolean enable)

Set the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

EventGridAndResourceGraph withScheduledEventsApiVersion(String scheduledEventsApiVersion)

Set the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.

Methods inherited from java.lang.Object

Constructor Details

EventGridAndResourceGraph

public EventGridAndResourceGraph()

Creates an instance of EventGridAndResourceGraph class.

Method Details

enable

public Boolean enable()

Get the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

Returns:

the enable value.

fromJson

public static EventGridAndResourceGraph fromJson(JsonReader jsonReader)

Reads an instance of EventGridAndResourceGraph from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scheduledEventsApiVersion

public String scheduledEventsApiVersion()

Get the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.

Returns:

the scheduledEventsApiVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnable

public EventGridAndResourceGraph withEnable(Boolean enable)

Set the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

Parameters:

enable - the enable value to set.

Returns:

the EventGridAndResourceGraph object itself.

withScheduledEventsApiVersion

public EventGridAndResourceGraph withScheduledEventsApiVersion(String scheduledEventsApiVersion)

Set the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.

Parameters:

scheduledEventsApiVersion - the scheduledEventsApiVersion value to set.

Returns:

the EventGridAndResourceGraph object itself.

Applies to