Class KafkaProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.KafkaProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KafkaProfile>
public final class KafkaProfile
extends Object
implements com.azure.json.JsonSerializable<KafkaProfile>
The Kafka cluster profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectivityEndpoints property: Kafka bootstrap server and brokers related connectivity endpoints.Get the diskStorage property: Kafka disk storage profile.Get the enableKRaft property: Expose Kafka cluster in KRaft mode.Get the enablePublicEndpoints property: Expose worker nodes as public endpoints.static KafkaProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KafkaProfile from the JsonReader.Get the remoteStorageUri property: Fully qualified path of Azure Storage container used for Tiered Storage.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskStorage(DiskStorageProfile diskStorage) Set the diskStorage property: Kafka disk storage profile.withEnableKRaft(Boolean enableKRaft) Set the enableKRaft property: Expose Kafka cluster in KRaft mode.withEnablePublicEndpoints(Boolean enablePublicEndpoints) Set the enablePublicEndpoints property: Expose worker nodes as public endpoints.withRemoteStorageUri(String remoteStorageUri) Set the remoteStorageUri property: Fully qualified path of Azure Storage container used for Tiered Storage.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KafkaProfile
public KafkaProfile()Creates an instance of KafkaProfile class.
-
-
Method Details
-
enableKRaft
Get the enableKRaft property: Expose Kafka cluster in KRaft mode.- Returns:
- the enableKRaft value.
-
withEnableKRaft
Set the enableKRaft property: Expose Kafka cluster in KRaft mode.- Parameters:
enableKRaft- the enableKRaft value to set.- Returns:
- the KafkaProfile object itself.
-
enablePublicEndpoints
Get the enablePublicEndpoints property: Expose worker nodes as public endpoints.- Returns:
- the enablePublicEndpoints value.
-
withEnablePublicEndpoints
Set the enablePublicEndpoints property: Expose worker nodes as public endpoints.- Parameters:
enablePublicEndpoints- the enablePublicEndpoints value to set.- Returns:
- the KafkaProfile object itself.
-
remoteStorageUri
Get the remoteStorageUri property: Fully qualified path of Azure Storage container used for Tiered Storage.- Returns:
- the remoteStorageUri value.
-
withRemoteStorageUri
Set the remoteStorageUri property: Fully qualified path of Azure Storage container used for Tiered Storage.- Parameters:
remoteStorageUri- the remoteStorageUri value to set.- Returns:
- the KafkaProfile object itself.
-
diskStorage
Get the diskStorage property: Kafka disk storage profile.- Returns:
- the diskStorage value.
-
withDiskStorage
Set the diskStorage property: Kafka disk storage profile.- Parameters:
diskStorage- the diskStorage value to set.- Returns:
- the KafkaProfile object itself.
-
connectivityEndpoints
Get the connectivityEndpoints property: Kafka bootstrap server and brokers related connectivity endpoints.- Returns:
- the connectivityEndpoints value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KafkaProfile>- Throws:
IOException
-
fromJson
Reads an instance of KafkaProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KafkaProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KafkaProfile.
-