DenyAssignmentPrincipal Class

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

Implements

public final class DenyAssignmentPrincipal
implements JsonSerializable<DenyAssignmentPrincipal>

Deny assignment principal.

Constructor Summary

Constructor Description
DenyAssignmentPrincipal()

Creates an instance of DenyAssignmentPrincipal class.

Method Summary

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

Reads an instance of DenyAssignmentPrincipal from the JsonReader.

String id()

Get the id property: The object ID of the principal.

JsonWriter toJson(JsonWriter jsonWriter)
BinaryData type()

Get the type property: The type of the principal such as user, group, servicePrincipal, etc.

void validate()

Validates the instance.

DenyAssignmentPrincipal withId(String id)

Set the id property: The object ID of the principal.

DenyAssignmentPrincipal withType(BinaryData type)

Set the type property: The type of the principal such as user, group, servicePrincipal, etc.

Methods inherited from java.lang.Object

Constructor Details

DenyAssignmentPrincipal

public DenyAssignmentPrincipal()

Creates an instance of DenyAssignmentPrincipal class.

Method Details

fromJson

public static DenyAssignmentPrincipal fromJson(JsonReader jsonReader)

Reads an instance of DenyAssignmentPrincipal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The object ID of the principal.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public BinaryData type()

Get the type property: The type of the principal such as user, group, servicePrincipal, etc.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public DenyAssignmentPrincipal withId(String id)

Set the id property: The object ID of the principal.

Parameters:

id - the id value to set.

Returns:

the DenyAssignmentPrincipal object itself.

withType

public DenyAssignmentPrincipal withType(BinaryData type)

Set the type property: The type of the principal such as user, group, servicePrincipal, etc.

Parameters:

type - the type value to set.

Returns:

the DenyAssignmentPrincipal object itself.

Applies to