Class EventGridAndResourceGraph
java.lang.Object
com.azure.resourcemanager.compute.models.EventGridAndResourceGraph
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EventGridAndResourceGraph>
public final class EventGridAndResourceGraph
extends Object
implements com.azure.json.JsonSerializable<EventGridAndResourceGraph>
Specifies eventGridAndResourceGraph related Scheduled Event related configurations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EventGridAndResourceGraph class. -
Method Summary
Modifier and TypeMethodDescriptionenable()Get the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.static EventGridAndResourceGraphfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EventGridAndResourceGraph from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnable(Boolean enable) Set the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EventGridAndResourceGraph
public EventGridAndResourceGraph()Creates an instance of EventGridAndResourceGraph class.
-
-
Method Details
-
enable
Get the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.- Returns:
- the enable value.
-
withEnable
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EventGridAndResourceGraph>- Throws:
IOException
-
fromJson
public static EventGridAndResourceGraph fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-