Record Class KubernetesClientConfigContext

java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.client.config.KubernetesClientConfigContext

public record KubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType) extends Record
A context/holder for various data needed to compute property sources.
Author:
wind57
  • Constructor Summary

    Constructors
    Constructor
    Description
    KubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType)
    Creates an instance of a KubernetesClientConfigContext record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.kubernetes.client.openapi.apis.CoreV1Api
    Returns the value of the client record component.
    org.springframework.core.env.Environment
    Returns the value of the environment record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the includeDefaultProfileData record component.
    Returns the value of the namespace record component.
    org.springframework.cloud.kubernetes.commons.config.NormalizedSource
    Returns the value of the normalizedSource record component.
    org.springframework.cloud.kubernetes.commons.config.ReadType
    Returns the value of the readType record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KubernetesClientConfigContext

      public KubernetesClientConfigContext(io.kubernetes.client.openapi.apis.CoreV1Api client, org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource, String namespace, org.springframework.core.env.Environment environment, boolean includeDefaultProfileData, org.springframework.cloud.kubernetes.commons.config.ReadType readType)
      Creates an instance of a KubernetesClientConfigContext record class.
      Parameters:
      client - the value for the client record component
      normalizedSource - the value for the normalizedSource record component
      namespace - the value for the namespace record component
      environment - the value for the environment record component
      includeDefaultProfileData - the value for the includeDefaultProfileData record component
      readType - the value for the readType record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • client

      public io.kubernetes.client.openapi.apis.CoreV1Api client()
      Returns the value of the client record component.
      Returns:
      the value of the client record component
    • normalizedSource

      public org.springframework.cloud.kubernetes.commons.config.NormalizedSource normalizedSource()
      Returns the value of the normalizedSource record component.
      Returns:
      the value of the normalizedSource record component
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • environment

      public org.springframework.core.env.Environment environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • includeDefaultProfileData

      public boolean includeDefaultProfileData()
      Returns the value of the includeDefaultProfileData record component.
      Returns:
      the value of the includeDefaultProfileData record component
    • readType

      public org.springframework.cloud.kubernetes.commons.config.ReadType readType()
      Returns the value of the readType record component.
      Returns:
      the value of the readType record component