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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem
(V1beta3PolicyRulesWithSubjects rulesItem) distinguisherMethod
(V1beta3FlowDistinguisherMethod distinguisherMethod) boolean
static V1beta3FlowSchemaSpec
Create an instance of V1beta3FlowSchemaSpec 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
(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration) rules
(List<V1beta3PolicyRulesWithSubjects> rules) void
setDistinguisherMethod
(V1beta3FlowDistinguisherMethod distinguisherMethod) void
setMatchingPrecedence
(Integer matchingPrecedence) void
setPriorityLevelConfiguration
(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration) void
toJson()
Convert an instance of V1beta3FlowSchemaSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
V1beta3FlowSchemaSpec
public V1beta3FlowSchemaSpec()
-
-
Method Details
-
distinguisherMethod
public V1beta3FlowSchemaSpec distinguisherMethod(V1beta3FlowDistinguisherMethod 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 V1beta3FlowSchemaSpec priorityLevelConfiguration(V1beta3PriorityLevelConfigurationReference priorityLevelConfiguration) -
getPriorityLevelConfiguration
Get priorityLevelConfiguration- Returns:
- priorityLevelConfiguration
-
setPriorityLevelConfiguration
public void setPriorityLevelConfiguration(V1beta3PriorityLevelConfigurationReference 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
-
validateJsonObject
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
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
Convert an instance of V1beta3FlowSchemaSpec to an JSON string- Returns:
- JSON string
-