IdentityAccessControl Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. IdentityAccessControl
- com.
Implements
public final class IdentityAccessControl
implements JsonSerializable<IdentityAccessControl>
The access control for an identity.
Constructor Summary
| Constructor | Description |
|---|---|
| IdentityAccessControl() |
Creates an instance of Identity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Identity |
access()
Get the access property: The access level of the identity. |
|
static
Identity |
fromJson(JsonReader jsonReader)
Reads an instance of Identity |
| String |
identity()
Get the identity property: An identity. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Identity |
withAccess(IdentityAccessLevel access)
Set the access property: The access level of the identity. |
|
Identity |
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:
fromJson
public static IdentityAccessControl fromJson(JsonReader jsonReader)
Reads an instance of IdentityAccessControl from the JsonReader.
Parameters:
Returns:
Throws:
identity
public String identity()
Get the identity property: An identity.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAccess
public IdentityAccessControl withAccess(IdentityAccessLevel access)
Set the access property: The access level of the identity.
Parameters:
Returns:
withIdentity
public IdentityAccessControl withIdentity(String identity)
Set the identity property: An identity.
Parameters:
Returns: