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
  • Field Details

    • SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS

      public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1AggregationRule

      public V1AggregationRule()
  • Method Details

    • clusterRoleSelectors

      public V1AggregationRule clusterRoleSelectors(List<V1LabelSelector> clusterRoleSelectors)
    • addClusterRoleSelectorsItem

      public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRoleSelectorsItem)
    • getClusterRoleSelectors

      @Nullable public List<V1LabelSelector> 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

      public void setClusterRoleSelectors(List<V1LabelSelector> clusterRoleSelectors)
    • 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 V1AggregationRule
    • fromJson

      public static V1AggregationRule fromJson(String jsonString) throws IOException
      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

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