Class V1FlowSchemaSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1FlowSchemaSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1FlowSchemaSpec
extends Object
FlowSchemaSpec describes how the FlowSchema's specification looks like.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem
(V1PolicyRulesWithSubjects rulesItem) distinguisherMethod
(V1FlowDistinguisherMethod distinguisherMethod) boolean
static V1FlowSchemaSpec
Create an instance of V1FlowSchemaSpec given an JSON stringGet distinguisherMethod`matchingPrecedence` is used to choose among the FlowSchemas that match a given request.Get priorityLevelConfigurationgetRules()
`rules` describes which requests will match this flow schema.int
hashCode()
matchingPrecedence
(Integer matchingPrecedence) priorityLevelConfiguration
(V1PriorityLevelConfigurationReference priorityLevelConfiguration) rules
(List<V1PolicyRulesWithSubjects> rules) void
setDistinguisherMethod
(V1FlowDistinguisherMethod distinguisherMethod) void
setMatchingPrecedence
(Integer matchingPrecedence) void
setPriorityLevelConfiguration
(V1PriorityLevelConfigurationReference priorityLevelConfiguration) void
setRules
(List<V1PolicyRulesWithSubjects> rules) toJson()
Convert an instance of V1FlowSchemaSpec to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DISTINGUISHER_METHOD
- See Also:
-
SERIALIZED_NAME_MATCHING_PRECEDENCE
- See Also:
-
SERIALIZED_NAME_PRIORITY_LEVEL_CONFIGURATION
- See Also:
-
SERIALIZED_NAME_RULES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1FlowSchemaSpec
public V1FlowSchemaSpec()
-
-
Method Details
-
distinguisherMethod
-
getDistinguisherMethod
Get distinguisherMethod- Returns:
- distinguisherMethod
-
setDistinguisherMethod
-
matchingPrecedence
-
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
-
priorityLevelConfiguration
public V1FlowSchemaSpec priorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) -
getPriorityLevelConfiguration
Get priorityLevelConfiguration- Returns:
- priorityLevelConfiguration
-
setPriorityLevelConfiguration
public void setPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) -
rules
-
addRulesItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1FlowSchemaSpec
-
fromJson
Create an instance of V1FlowSchemaSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1FlowSchemaSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1FlowSchemaSpec
-
toJson
Convert an instance of V1FlowSchemaSpec to an JSON string- Returns:
- JSON string
-