Class V1AggregationRule
java.lang.Object
io.kubernetes.client.openapi.models.V1AggregationRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1AggregationRule
extends Object
AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClusterRoleSelectorsItem
(V1LabelSelector clusterRoleSelectorsItem) clusterRoleSelectors
(List<V1LabelSelector> clusterRoleSelectors) boolean
static V1AggregationRule
Create an instance of V1AggregationRule given an JSON stringClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules.int
hashCode()
void
setClusterRoleSelectors
(List<V1LabelSelector> clusterRoleSelectors) toJson()
Convert an instance of V1AggregationRule 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_CLUSTER_ROLE_SELECTORS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1AggregationRule
public V1AggregationRule()
-
-
Method Details
-
clusterRoleSelectors
-
addClusterRoleSelectorsItem
-
getClusterRoleSelectors
ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added- Returns:
- clusterRoleSelectors
-
setClusterRoleSelectors
-
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 V1AggregationRule
-
fromJson
Create an instance of V1AggregationRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1AggregationRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1AggregationRule
-
toJson
Convert an instance of V1AggregationRule to an JSON string- Returns:
- JSON string
-