AccessCreateRoleBindingRequestModel Class
- java.
lang. Object - com.
azure. resourcemanager. confluent. models. AccessCreateRoleBindingRequestModel
- com.
Implements
public final class AccessCreateRoleBindingRequestModel
implements JsonSerializable<AccessCreateRoleBindingRequestModel>
Create role binding request model.
Constructor Summary
| Constructor | Description |
|---|---|
| AccessCreateRoleBindingRequestModel() |
Creates an instance of Access |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
crnPattern()
Get the crn |
|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
| String |
principal()
Get the principal property: The principal User or Group to bind the role to. |
| String |
roleName()
Get the role |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Access |
withCrnPattern(String crnPattern)
Set the crn |
|
Access |
withPrincipal(String principal)
Set the principal property: The principal User or Group to bind the role to. |
|
Access |
withRoleName(String roleName)
Set the role |
Methods inherited from java.lang.Object
Constructor Details
AccessCreateRoleBindingRequestModel
public AccessCreateRoleBindingRequestModel()
Creates an instance of AccessCreateRoleBindingRequestModel class.
Method Details
crnPattern
public String crnPattern()
Get the crnPattern property: A CRN that specifies the scope and resource patterns necessary for the role to bind.
Returns:
fromJson
public static AccessCreateRoleBindingRequestModel fromJson(JsonReader jsonReader)
Reads an instance of AccessCreateRoleBindingRequestModel from the JsonReader.
Parameters:
Returns:
Throws:
principal
public String principal()
Get the principal property: The principal User or Group to bind the role to.
Returns:
roleName
public String roleName()
Get the roleName property: The name of the role to bind to the principal.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCrnPattern
public AccessCreateRoleBindingRequestModel withCrnPattern(String crnPattern)
Set the crnPattern property: A CRN that specifies the scope and resource patterns necessary for the role to bind.
Parameters:
Returns:
withPrincipal
public AccessCreateRoleBindingRequestModel withPrincipal(String principal)
Set the principal property: The principal User or Group to bind the role to.
Parameters:
Returns:
withRoleName
public AccessCreateRoleBindingRequestModel withRoleName(String roleName)
Set the roleName property: The name of the role to bind to the principal.
Parameters:
Returns: