Partilhar via


PolicyPropertiesScope Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.PolicyPropertiesScope

Implements

public final class PolicyPropertiesScope
implements JsonSerializable<PolicyPropertiesScope>

Details of the resource scope.

Constructor Summary

Constructor Description
PolicyPropertiesScope()

Creates an instance of PolicyPropertiesScope class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name of the resource.

static PolicyPropertiesScope fromJson(JsonReader jsonReader)

Reads an instance of PolicyPropertiesScope from the JsonReader.

String id()

Get the id property: Scope id of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

PolicyPropertiesScope withDisplayName(String displayName)

Set the displayName property: Display name of the resource.

PolicyPropertiesScope withId(String id)

Set the id property: Scope id of the resource.

PolicyPropertiesScope withType(String type)

Set the type property: Type of the resource.

Methods inherited from java.lang.Object

Constructor Details

PolicyPropertiesScope

public PolicyPropertiesScope()

Creates an instance of PolicyPropertiesScope class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name of the resource.

Returns:

the displayName value.

fromJson

public static PolicyPropertiesScope fromJson(JsonReader jsonReader)

Reads an instance of PolicyPropertiesScope from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Scope id of the resource.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDisplayName

public PolicyPropertiesScope withDisplayName(String displayName)

Set the displayName property: Display name of the resource.

Parameters:

displayName - the displayName value to set.

Returns:

the PolicyPropertiesScope object itself.

withId

public PolicyPropertiesScope withId(String id)

Set the id property: Scope id of the resource.

Parameters:

id - the id value to set.

Returns:

the PolicyPropertiesScope object itself.

withType

public PolicyPropertiesScope withType(String type)

Set the type property: Type of the resource.

Parameters:

type - the type value to set.

Returns:

the PolicyPropertiesScope object itself.

Applies to