RoleBindingRecord Class
- java.
lang. Object - com.
azure. resourcemanager. confluent. models. RoleBindingRecord
- com.
Implements
public final class RoleBindingRecord
implements JsonSerializable<RoleBindingRecord>
Details on principal, role name and crn pattern of a role binding.
Constructor Summary
| Constructor | Description |
|---|---|
| RoleBindingRecord() |
Creates an instance of Role |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
crnPattern()
Get the crn |
|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
| String |
id()
Get the id property: Id of the role binding. |
| String |
kind()
Get the kind property: The type of the resource. |
|
Metadata |
metadata()
Get the metadata property: Metadata of the record. |
| 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. |
|
Role |
withCrnPattern(String crnPattern)
Set the crn |
|
Role |
withId(String id)
Set the id property: Id of the role binding. |
|
Role |
withKind(String kind)
Set the kind property: The type of the resource. |
|
Role |
withMetadata(MetadataEntity metadata)
Set the metadata property: Metadata of the record. |
|
Role |
withPrincipal(String principal)
Set the principal property: The principal User or Group to bind the role to. |
|
Role |
withRoleName(String roleName)
Set the role |
Methods inherited from java.lang.Object
Constructor Details
RoleBindingRecord
public RoleBindingRecord()
Creates an instance of RoleBindingRecord 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 RoleBindingRecord fromJson(JsonReader jsonReader)
Reads an instance of RoleBindingRecord from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Id of the role binding.
Returns:
kind
public String kind()
Get the kind property: The type of the resource.
Returns:
metadata
public MetadataEntity metadata()
Get the metadata property: Metadata of the record.
Returns:
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 RoleBindingRecord withCrnPattern(String crnPattern)
Set the crnPattern property: A CRN that specifies the scope and resource patterns necessary for the role to bind.
Parameters:
Returns:
withId
public RoleBindingRecord withId(String id)
Set the id property: Id of the role binding.
Parameters:
Returns:
withKind
public RoleBindingRecord withKind(String kind)
Set the kind property: The type of the resource.
Parameters:
Returns:
withMetadata
public RoleBindingRecord withMetadata(MetadataEntity metadata)
Set the metadata property: Metadata of the record.
Parameters:
Returns:
withPrincipal
public RoleBindingRecord withPrincipal(String principal)
Set the principal property: The principal User or Group to bind the role to.
Parameters:
Returns:
withRoleName
public RoleBindingRecord withRoleName(String roleName)
Set the roleName property: The name of the role to bind to the principal.
Parameters:
Returns: