Record Class KiteConfig.ProviderConfig

java.lang.Object
java.lang.Record
cloud.kitelang.cli.config.KiteConfig.ProviderConfig
Enclosing class:
KiteConfig

public static record KiteConfig.ProviderConfig(String profile, String region, Map<String,String> extra) extends Record
Provider-specific configuration (credentials, regions, etc.)
  • Constructor Details

    • ProviderConfig

      public ProviderConfig(String profile, String region, Map<String,String> extra)
      Creates an instance of a ProviderConfig record class.
      Parameters:
      profile - the value for the profile record component
      region - the value for the region record component
      extra - the value for the extra record component
  • Method Details

    • empty

      public static KiteConfig.ProviderConfig empty()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • profile

      public String profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • extra

      public Map<String,String> extra()
      Returns the value of the extra record component.
      Returns:
      the value of the extra record component