IdentityAccessControl Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.IdentityAccessControl

Implements

public final class IdentityAccessControl
implements JsonSerializable<IdentityAccessControl>

The access control for an identity.

Constructor Summary

Constructor Description
IdentityAccessControl()

Creates an instance of IdentityAccessControl class.

Method Summary

Modifier and Type Method and Description
IdentityAccessLevel access()

Get the access property: The access level of the identity.

static IdentityAccessControl fromJson(JsonReader jsonReader)

Reads an instance of IdentityAccessControl from the JsonReader.

String identity()

Get the identity property: An identity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IdentityAccessControl withAccess(IdentityAccessLevel access)

Set the access property: The access level of the identity.

IdentityAccessControl withIdentity(String identity)

Set the identity property: An identity.

Methods inherited from java.lang.Object

Constructor Details

IdentityAccessControl

public IdentityAccessControl()

Creates an instance of IdentityAccessControl class.

Method Details

access

public IdentityAccessLevel access()

Get the access property: The access level of the identity.

Returns:

the access value.

fromJson

public static IdentityAccessControl fromJson(JsonReader jsonReader)

Reads an instance of IdentityAccessControl from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public String identity()

Get the identity property: An identity.

Returns:

the identity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccess

public IdentityAccessControl withAccess(IdentityAccessLevel access)

Set the access property: The access level of the identity.

Parameters:

access - the access value to set.

Returns:

the IdentityAccessControl object itself.

withIdentity

public IdentityAccessControl withIdentity(String identity)

Set the identity property: An identity.

Parameters:

identity - the identity value to set.

Returns:

the IdentityAccessControl object itself.

Applies to