Share via


ClusterRecord Class

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

Implements

public final class ClusterRecord
implements JsonSerializable<ClusterRecord>

Details of cluster record.

Constructor Summary

Constructor Description
ClusterRecord()

Creates an instance of ClusterRecord class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name of the cluster.

static ClusterRecord fromJson(JsonReader jsonReader)

Reads an instance of ClusterRecord from the JsonReader.

String id()

Get the id property: Id of the cluster.

String kind()

Get the kind property: Type of cluster.

MetadataEntity metadata()

Get the metadata property: Metadata of the record.

ClusterSpecEntity spec()

Get the spec property: Specification of the cluster.

ClusterStatusEntity status()

Get the status property: Specification of the cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClusterRecord withDisplayName(String displayName)

Set the displayName property: Display name of the cluster.

ClusterRecord withId(String id)

Set the id property: Id of the cluster.

ClusterRecord withKind(String kind)

Set the kind property: Type of cluster.

ClusterRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

ClusterRecord withSpec(ClusterSpecEntity spec)

Set the spec property: Specification of the cluster.

ClusterRecord withStatus(ClusterStatusEntity status)

Set the status property: Specification of the cluster.

Methods inherited from java.lang.Object

Constructor Details

ClusterRecord

public ClusterRecord()

Creates an instance of ClusterRecord class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name of the cluster.

Returns:

the displayName value.

fromJson

public static ClusterRecord fromJson(JsonReader jsonReader)

Reads an instance of ClusterRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the cluster.

Returns:

the id value.

kind

public String kind()

Get the kind property: Type of cluster.

Returns:

the kind value.

metadata

public MetadataEntity metadata()

Get the metadata property: Metadata of the record.

Returns:

the metadata value.

spec

public ClusterSpecEntity spec()

Get the spec property: Specification of the cluster.

Returns:

the spec value.

status

public ClusterStatusEntity status()

Get the status property: Specification of the cluster.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public ClusterRecord withDisplayName(String displayName)

Set the displayName property: Display name of the cluster.

Parameters:

displayName - the displayName value to set.

Returns:

the ClusterRecord object itself.

withId

public ClusterRecord withId(String id)

Set the id property: Id of the cluster.

Parameters:

id - the id value to set.

Returns:

the ClusterRecord object itself.

withKind

public ClusterRecord withKind(String kind)

Set the kind property: Type of cluster.

Parameters:

kind - the kind value to set.

Returns:

the ClusterRecord object itself.

withMetadata

public ClusterRecord withMetadata(MetadataEntity metadata)

Set the metadata property: Metadata of the record.

Parameters:

metadata - the metadata value to set.

Returns:

the ClusterRecord object itself.

withSpec

public ClusterRecord withSpec(ClusterSpecEntity spec)

Set the spec property: Specification of the cluster.

Parameters:

spec - the spec value to set.

Returns:

the ClusterRecord object itself.

withStatus

public ClusterRecord withStatus(ClusterStatusEntity status)

Set the status property: Specification of the cluster.

Parameters:

status - the status value to set.

Returns:

the ClusterRecord object itself.

Applies to