AccessCreateRoleBindingRequestModel Class

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

Implements

public final class AccessCreateRoleBindingRequestModel
implements JsonSerializable<AccessCreateRoleBindingRequestModel>

Create role binding request model.

Constructor Summary

Constructor Description
AccessCreateRoleBindingRequestModel()

Creates an instance of AccessCreateRoleBindingRequestModel 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 AccessCreateRoleBindingRequestModel fromJson(JsonReader jsonReader)

Reads an instance of AccessCreateRoleBindingRequestModel from the JsonReader.

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.

AccessCreateRoleBindingRequestModel withCrnPattern(String crnPattern)

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

AccessCreateRoleBindingRequestModel withPrincipal(String principal)

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

AccessCreateRoleBindingRequestModel 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

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:

the crnPattern value.

fromJson

public static AccessCreateRoleBindingRequestModel fromJson(JsonReader jsonReader)

Reads an instance of AccessCreateRoleBindingRequestModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 AccessCreateRoleBindingRequestModel 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 AccessCreateRoleBindingRequestModel object itself.

withPrincipal

public AccessCreateRoleBindingRequestModel 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 AccessCreateRoleBindingRequestModel object itself.

withRoleName

public AccessCreateRoleBindingRequestModel 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 AccessCreateRoleBindingRequestModel object itself.

Applies to