AutomationScope Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.AutomationScope

Implements

public final class AutomationScope
implements JsonSerializable<AutomationScope>

A single automation scope.

Constructor Summary

Constructor Description
AutomationScope()

Creates an instance of AutomationScope class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The resources scope description.

static AutomationScope fromJson(JsonReader jsonReader)

Reads an instance of AutomationScope from the JsonReader.

String scopePath()

Get the scopePath property: The resources scope path.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomationScope withDescription(String description)

Set the description property: The resources scope description.

AutomationScope withScopePath(String scopePath)

Set the scopePath property: The resources scope path.

Methods inherited from java.lang.Object

Constructor Details

AutomationScope

public AutomationScope()

Creates an instance of AutomationScope class.

Method Details

description

public String description()

Get the description property: The resources scope description.

Returns:

the description value.

fromJson

public static AutomationScope fromJson(JsonReader jsonReader)

Reads an instance of AutomationScope from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scopePath

public String scopePath()

Get the scopePath property: The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs).

Returns:

the scopePath value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public AutomationScope withDescription(String description)

Set the description property: The resources scope description.

Parameters:

description - the description value to set.

Returns:

the AutomationScope object itself.

withScopePath

public AutomationScope withScopePath(String scopePath)

Set the scopePath property: The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs).

Parameters:

scopePath - the scopePath value to set.

Returns:

the AutomationScope object itself.

Applies to