Class KafkaConnectivityEndpoints
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.KafkaConnectivityEndpoints
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KafkaConnectivityEndpoints>
public final class KafkaConnectivityEndpoints
extends Object
implements com.azure.json.JsonSerializable<KafkaConnectivityEndpoints>
Kafka bootstrap server and broker related connectivity endpoints.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KafkaConnectivityEndpoints class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.Get the brokerEndpoints property: Kafka broker endpoint list.static KafkaConnectivityEndpointsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KafkaConnectivityEndpoints from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBootstrapServerEndpoint(String bootstrapServerEndpoint) Set the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.withBrokerEndpoints(List<String> brokerEndpoints) Set the brokerEndpoints property: Kafka broker endpoint list.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
-
KafkaConnectivityEndpoints
public KafkaConnectivityEndpoints()Creates an instance of KafkaConnectivityEndpoints class.
-
-
Method Details
-
bootstrapServerEndpoint
Get the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.- Returns:
- the bootstrapServerEndpoint value.
-
withBootstrapServerEndpoint
Set the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.- Parameters:
bootstrapServerEndpoint- the bootstrapServerEndpoint value to set.- Returns:
- the KafkaConnectivityEndpoints object itself.
-
brokerEndpoints
-
withBrokerEndpoints
Set the brokerEndpoints property: Kafka broker endpoint list.- Parameters:
brokerEndpoints- the brokerEndpoints value to set.- Returns:
- the KafkaConnectivityEndpoints object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KafkaConnectivityEndpoints>- Throws:
IOException
-
fromJson
public static KafkaConnectivityEndpoints fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KafkaConnectivityEndpoints from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KafkaConnectivityEndpoints 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 KafkaConnectivityEndpoints.
-