Share via


UserRecord Class

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

Implements

public final class UserRecord
implements JsonSerializable<UserRecord>

Record of the user.

Constructor Summary

Constructor Description
UserRecord()

Creates an instance of UserRecord class.

Method Summary

Modifier and Type Method and Description
String authType()

Get the authType property: Auth type of the user.

String email()

Get the email property: Email of the user.

static UserRecord fromJson(JsonReader jsonReader)

Reads an instance of UserRecord from the JsonReader.

String fullName()

Get the fullName property: Name of the user.

String id()

Get the id property: Id of the user.

String kind()

Get the kind property: Type of account.

MetadataEntity metadata()

Get the metadata property: Metadata of the record.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserRecord withAuthType(String authType)

Set the authType property: Auth type of the user.

UserRecord withEmail(String email)

Set the email property: Email of the user.

UserRecord withFullName(String fullName)

Set the fullName property: Name of the user.

UserRecord withId(String id)

Set the id property: Id of the user.

UserRecord withKind(String kind)

Set the kind property: Type of account.

UserRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Methods inherited from java.lang.Object

Constructor Details

UserRecord

public UserRecord()

Creates an instance of UserRecord class.

Method Details

authType

public String authType()

Get the authType property: Auth type of the user.

Returns:

the authType value.

email

public String email()

Get the email property: Email of the user.

Returns:

the email value.

fromJson

public static UserRecord fromJson(JsonReader jsonReader)

Reads an instance of UserRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

fullName

public String fullName()

Get the fullName property: Name of the user.

Returns:

the fullName value.

id

public String id()

Get the id property: Id of the user.

Returns:

the id value.

kind

public String kind()

Get the kind property: Type of account.

Returns:

the kind value.

metadata

public MetadataEntity metadata()

Get the metadata property: Metadata of the record.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthType

public UserRecord withAuthType(String authType)

Set the authType property: Auth type of the user.

Parameters:

authType - the authType value to set.

Returns:

the UserRecord object itself.

withEmail

public UserRecord withEmail(String email)

Set the email property: Email of the user.

Parameters:

email - the email value to set.

Returns:

the UserRecord object itself.

withFullName

public UserRecord withFullName(String fullName)

Set the fullName property: Name of the user.

Parameters:

fullName - the fullName value to set.

Returns:

the UserRecord object itself.

withId

public UserRecord withId(String id)

Set the id property: Id of the user.

Parameters:

id - the id value to set.

Returns:

the UserRecord object itself.

withKind

public UserRecord withKind(String kind)

Set the kind property: Type of account.

Parameters:

kind - the kind value to set.

Returns:

the UserRecord object itself.

withMetadata

public UserRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Parameters:

metadata - the metadata value to set.

Returns:

the UserRecord object itself.

Applies to