Record Class EnkryptifyConfig

java.lang.Object
java.lang.Record
com.enkryptify.EnkryptifyConfig

public record EnkryptifyConfig(String workspace, String project, String environment, EnkryptifyAuthProvider auth, String token, String baseUrl, boolean useTokenExchange, boolean strict, boolean usePersonalValues, boolean cacheEnabled, long cacheTtl, boolean cacheEager) extends Record
  • Constructor Details

    • EnkryptifyConfig

      public EnkryptifyConfig(String workspace, String project, String environment, EnkryptifyAuthProvider auth, String token, String baseUrl, boolean useTokenExchange, boolean strict, boolean usePersonalValues, boolean cacheEnabled, long cacheTtl, boolean cacheEager)
      Creates an instance of a EnkryptifyConfig record class.
      Parameters:
      workspace - the value for the workspace record component
      project - the value for the project record component
      environment - the value for the environment record component
      auth - the value for the auth record component
      token - the value for the token record component
      baseUrl - the value for the baseUrl record component
      useTokenExchange - the value for the useTokenExchange record component
      strict - the value for the strict record component
      usePersonalValues - the value for the usePersonalValues record component
      cacheEnabled - the value for the cacheEnabled record component
      cacheTtl - the value for the cacheTtl record component
      cacheEager - the value for the cacheEager record component
  • Method Details

    • builder

      public static EnkryptifyConfig.Builder builder(String workspace, String project, String environment)
    • 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.
    • workspace

      public String workspace()
      Returns the value of the workspace record component.
      Returns:
      the value of the workspace record component
    • project

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

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

      public EnkryptifyAuthProvider auth()
      Returns the value of the auth record component.
      Returns:
      the value of the auth record component
    • token

      public String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • useTokenExchange

      public boolean useTokenExchange()
      Returns the value of the useTokenExchange record component.
      Returns:
      the value of the useTokenExchange record component
    • strict

      public boolean strict()
      Returns the value of the strict record component.
      Returns:
      the value of the strict record component
    • usePersonalValues

      public boolean usePersonalValues()
      Returns the value of the usePersonalValues record component.
      Returns:
      the value of the usePersonalValues record component
    • cacheEnabled

      public boolean cacheEnabled()
      Returns the value of the cacheEnabled record component.
      Returns:
      the value of the cacheEnabled record component
    • cacheTtl

      public long cacheTtl()
      Returns the value of the cacheTtl record component.
      Returns:
      the value of the cacheTtl record component
    • cacheEager

      public boolean cacheEager()
      Returns the value of the cacheEager record component.
      Returns:
      the value of the cacheEager record component