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 Details

    • KafkaConnectivityEndpoints

      public KafkaConnectivityEndpoints()
      Creates an instance of KafkaConnectivityEndpoints class.
  • Method Details

    • bootstrapServerEndpoint

      public String bootstrapServerEndpoint()
      Get the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.
      Returns:
      the bootstrapServerEndpoint value.
    • withBootstrapServerEndpoint

      public KafkaConnectivityEndpoints withBootstrapServerEndpoint(String bootstrapServerEndpoint)
      Set the bootstrapServerEndpoint property: bootstrap server connectivity endpoint.
      Parameters:
      bootstrapServerEndpoint - the bootstrapServerEndpoint value to set.
      Returns:
      the KafkaConnectivityEndpoints object itself.
    • brokerEndpoints

      public List<String> brokerEndpoints()
      Get the brokerEndpoints property: Kafka broker endpoint list.
      Returns:
      the brokerEndpoints value.
    • withBrokerEndpoints

      public KafkaConnectivityEndpoints withBrokerEndpoints(List<String> brokerEndpoints)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.