DenyAssignmentPrincipal Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. DenyAssignmentPrincipal
- com.
Implements
public final class DenyAssignmentPrincipal
implements JsonSerializable<DenyAssignmentPrincipal>
Deny assignment principal.
Constructor Summary
| Constructor | Description |
|---|---|
| DenyAssignmentPrincipal() |
Creates an instance of Deny |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Deny |
fromJson(JsonReader jsonReader)
Reads an instance of Deny |
| String |
id()
Get the id property: The object ID of the principal. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Binary |
type()
Get the type property: The type of the principal such as user, group, service |
| void |
validate()
Validates the instance. |
|
Deny |
withId(String id)
Set the id property: The object ID of the principal. |
|
Deny |
withType(BinaryData type)
Set the type property: The type of the principal such as user, group, service |
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:
Returns:
Throws:
id
public String id()
Get the id property: The object ID of the principal.
Returns:
toJson
type
public BinaryData type()
Get the type property: The type of the principal such as user, group, servicePrincipal, etc.
Returns:
validate
public void validate()
Validates the instance.
withId
public DenyAssignmentPrincipal withId(String id)
Set the id property: The object ID of the principal.
Parameters:
Returns:
withType
public DenyAssignmentPrincipal withType(BinaryData type)
Set the type property: The type of the principal such as user, group, servicePrincipal, etc.
Parameters:
Returns: