Class V1IngressTLS

java.lang.Object
io.kubernetes.client.openapi.models.V1IngressTLS

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1IngressTLS extends Object
IngressTLS describes the transport layer security associated with an ingress.
  • Field Details

  • Constructor Details

    • V1IngressTLS

      public V1IngressTLS()
  • Method Details

    • hosts

      public V1IngressTLS hosts(List<String> hosts)
    • addHostsItem

      public V1IngressTLS addHostsItem(String hostsItem)
    • getHosts

      @Nullable public List<String> getHosts()
      hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.
      Returns:
      hosts
    • setHosts

      public void setHosts(List<String> hosts)
    • secretName

      public V1IngressTLS secretName(String secretName)
    • getSecretName

      @Nullable public String getSecretName()
      secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.
      Returns:
      secretName
    • setSecretName

      public void setSecretName(String secretName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1IngressTLS
    • fromJson

      public static V1IngressTLS fromJson(String jsonString) throws IOException
      Create an instance of V1IngressTLS given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1IngressTLS
      Throws:
      IOException - if the JSON string is invalid with respect to V1IngressTLS
    • toJson

      public String toJson()
      Convert an instance of V1IngressTLS to an JSON string
      Returns:
      JSON string