Class V1beta3FlowSchemaSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1beta3FlowSchemaSpec extends Object
FlowSchemaSpec describes how the FlowSchema's specification looks like.
  • Field Details

  • Constructor Details

    • V1beta3FlowSchemaSpec

      public V1beta3FlowSchemaSpec()
  • Method Details

    • distinguisherMethod

      public V1beta3FlowSchemaSpec distinguisherMethod(V1beta3FlowDistinguisherMethod distinguisherMethod)
    • getDistinguisherMethod

      @Nullable public V1beta3FlowDistinguisherMethod getDistinguisherMethod()
      Get distinguisherMethod
      Returns:
      distinguisherMethod
    • setDistinguisherMethod

      public void setDistinguisherMethod(V1beta3FlowDistinguisherMethod distinguisherMethod)
    • matchingPrecedence

      public V1beta3FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence)
    • getMatchingPrecedence

      @Nullable public Integer getMatchingPrecedence()
      `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.
      Returns:
      matchingPrecedence
    • setMatchingPrecedence

      public void setMatchingPrecedence(Integer matchingPrecedence)
    • priorityLevelConfiguration

      public V1beta3FlowSchemaSpec priorityLevelConfiguration(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration)
    • getPriorityLevelConfiguration

      @Nonnull public V1beta3PriorityLevelConfigurationReference getPriorityLevelConfiguration()
      Get priorityLevelConfiguration
      Returns:
      priorityLevelConfiguration
    • setPriorityLevelConfiguration

      public void setPriorityLevelConfiguration(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration)
    • rules

    • addRulesItem

      public V1beta3FlowSchemaSpec addRulesItem(V1beta3PolicyRulesWithSubjects rulesItem)
    • getRules

      @Nullable public List<V1beta3PolicyRulesWithSubjects> getRules()
      `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.
      Returns:
      rules
    • setRules

      public void setRules(List<V1beta3PolicyRulesWithSubjects> rules)
    • 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 V1beta3FlowSchemaSpec
    • fromJson

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

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