Share via


RoleBindingRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.confluent.models.RoleBindingRecord

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 RoleBindingRecord class.

Method Summary

Modifier and Type Method and Description
String crnPattern()

Get the crnPattern property: A CRN that specifies the scope and resource patterns necessary for the role to bind.

static RoleBindingRecord fromJson(JsonReader jsonReader)

Reads an instance of RoleBindingRecord from the JsonReader.

String id()

Get the id property: Id of the role binding.

String kind()

Get the kind property: The type of the resource.

MetadataEntity 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 roleName property: The name of the role to bind to the principal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleBindingRecord withCrnPattern(String crnPattern)

Set the crnPattern property: A CRN that specifies the scope and resource patterns necessary for the role to bind.

RoleBindingRecord withId(String id)

Set the id property: Id of the role binding.

RoleBindingRecord withKind(String kind)

Set the kind property: The type of the resource.

RoleBindingRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

RoleBindingRecord withPrincipal(String principal)

Set the principal property: The principal User or Group to bind the role to.

RoleBindingRecord withRoleName(String roleName)

Set the roleName property: The name of the role to bind to the principal.

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:

the crnPattern value.

fromJson

public static RoleBindingRecord fromJson(JsonReader jsonReader)

Reads an instance of RoleBindingRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the role binding.

Returns:

the id value.

kind

public String kind()

Get the kind property: The type of the resource.

Returns:

the kind value.

metadata

public MetadataEntity metadata()

Get the metadata property: Metadata of the record.

Returns:

the metadata value.

principal

public String principal()

Get the principal property: The principal User or Group to bind the role to.

Returns:

the principal value.

roleName

public String roleName()

Get the roleName property: The name of the role to bind to the principal.

Returns:

the roleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

crnPattern - the crnPattern value to set.

Returns:

the RoleBindingRecord object itself.

withId

public RoleBindingRecord withId(String id)

Set the id property: Id of the role binding.

Parameters:

id - the id value to set.

Returns:

the RoleBindingRecord object itself.

withKind

public RoleBindingRecord withKind(String kind)

Set the kind property: The type of the resource.

Parameters:

kind - the kind value to set.

Returns:

the RoleBindingRecord object itself.

withMetadata

public RoleBindingRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Parameters:

metadata - the metadata value to set.

Returns:

the RoleBindingRecord object itself.

withPrincipal

public RoleBindingRecord withPrincipal(String principal)

Set the principal property: The principal User or Group to bind the role to.

Parameters:

principal - the principal value to set.

Returns:

the RoleBindingRecord object itself.

withRoleName

public RoleBindingRecord withRoleName(String roleName)

Set the roleName property: The name of the role to bind to the principal.

Parameters:

roleName - the roleName value to set.

Returns:

the RoleBindingRecord object itself.

Applies to