ServiceAccountRecord Class

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

Implements

public final class ServiceAccountRecord
implements JsonSerializable<ServiceAccountRecord>

Record of the service account.

Constructor Summary

Constructor Description
ServiceAccountRecord()

Creates an instance of ServiceAccountRecord class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the service account.

String displayName()

Get the displayName property: Name of the service account.

static ServiceAccountRecord fromJson(JsonReader jsonReader)

Reads an instance of ServiceAccountRecord from the JsonReader.

String id()

Get the id property: Id of the service account.

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.

ServiceAccountRecord withDescription(String description)

Set the description property: Description of the service account.

ServiceAccountRecord withDisplayName(String displayName)

Set the displayName property: Name of the service account.

ServiceAccountRecord withId(String id)

Set the id property: Id of the service account.

ServiceAccountRecord withKind(String kind)

Set the kind property: Type of account.

ServiceAccountRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Methods inherited from java.lang.Object

Constructor Details

ServiceAccountRecord

public ServiceAccountRecord()

Creates an instance of ServiceAccountRecord class.

Method Details

description

public String description()

Get the description property: Description of the service account.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Name of the service account.

Returns:

the displayName value.

fromJson

public static ServiceAccountRecord fromJson(JsonReader jsonReader)

Reads an instance of ServiceAccountRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the service account.

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.

withDescription

public ServiceAccountRecord withDescription(String description)

Set the description property: Description of the service account.

Parameters:

description - the description value to set.

Returns:

the ServiceAccountRecord object itself.

withDisplayName

public ServiceAccountRecord withDisplayName(String displayName)

Set the displayName property: Name of the service account.

Parameters:

displayName - the displayName value to set.

Returns:

the ServiceAccountRecord object itself.

withId

public ServiceAccountRecord withId(String id)

Set the id property: Id of the service account.

Parameters:

id - the id value to set.

Returns:

the ServiceAccountRecord object itself.

withKind

public ServiceAccountRecord withKind(String kind)

Set the kind property: Type of account.

Parameters:

kind - the kind value to set.

Returns:

the ServiceAccountRecord object itself.

withMetadata

public ServiceAccountRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Parameters:

metadata - the metadata value to set.

Returns:

the ServiceAccountRecord object itself.

Applies to