All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.openapi.models.V1ClusterRoleFluent Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
/*
Copyright 2022 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.Fluent;
import io.kubernetes.client.fluent.Nested;
import java.util.Collection;
import java.util.List;
import java.util.function.Predicate;

/** Generated */
public interface V1ClusterRoleFluent> extends Fluent {

  /**
   * This method has been deprecated, please use method buildAggregationRule instead.
   *
   * @return The buildable object.
   */
  @Deprecated
  public V1AggregationRule getAggregationRule();

  public io.kubernetes.client.openapi.models.V1AggregationRule buildAggregationRule();

  public A withAggregationRule(
      io.kubernetes.client.openapi.models.V1AggregationRule aggregationRule);

  public Boolean hasAggregationRule();

  public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested
      withNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item);

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested
      editAggregationRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested
      editOrNewAggregationRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested
      editOrNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item);

  public String getApiVersion();

  public A withApiVersion(java.lang.String apiVersion);

  public java.lang.Boolean hasApiVersion();

  public java.lang.String getKind();

  public A withKind(java.lang.String kind);

  public java.lang.Boolean hasKind();

  /**
   * This method has been deprecated, please use method buildMetadata instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public V1ObjectMeta getMetadata();

  public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata();

  public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata);

  public java.lang.Boolean hasMetadata();

  public V1ClusterRoleFluent.MetadataNested withNewMetadata();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested
      withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item);

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested editMetadata();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested
      editOrNewMetadata();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested
      editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item);

  public A addToRules(Integer index, V1PolicyRule item);

  public A setToRules(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item);

  public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items);

  public A addAllToRules(Collection items);

  public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items);

  public A removeAllFromRules(
      java.util.Collection items);

  public A removeMatchingFromRules(Predicate predicate);

  /**
   * This method has been deprecated, please use method buildRules instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public List getRules();

  public java.util.List buildRules();

  public io.kubernetes.client.openapi.models.V1PolicyRule buildRule(java.lang.Integer index);

  public io.kubernetes.client.openapi.models.V1PolicyRule buildFirstRule();

  public io.kubernetes.client.openapi.models.V1PolicyRule buildLastRule();

  public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule(
      java.util.function.Predicate
          predicate);

  public java.lang.Boolean hasMatchingRule(
      java.util.function.Predicate
          predicate);

  public A withRules(java.util.List rules);

  public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules);

  public java.lang.Boolean hasRules();

  public V1ClusterRoleFluent.RulesNested addNewRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested addNewRuleLike(
      io.kubernetes.client.openapi.models.V1PolicyRule item);

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested setNewRuleLike(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item);

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editRule(
      java.lang.Integer index);

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editFirstRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editLastRule();

  public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editMatchingRule(
      java.util.function.Predicate
          predicate);

  public interface AggregationRuleNested
      extends Nested, V1AggregationRuleFluent> {
    public N and();

    public N endAggregationRule();
  }

  public interface MetadataNested
      extends io.kubernetes.client.fluent.Nested,
          V1ObjectMetaFluent> {
    public N and();

    public N endMetadata();
  }

  public interface RulesNested
      extends io.kubernetes.client.fluent.Nested,
          V1PolicyRuleFluent> {
    public N and();

    public N endRule();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy