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

io.kubernetes.client.openapi.models.V1RoleFluent 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 V1RoleFluent> extends Fluent {
  public String getApiVersion();

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

  public 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.
   */
  @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 V1RoleFluent.MetadataNested withNewMetadata();

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

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

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

  public io.kubernetes.client.openapi.models.V1RoleFluent.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 V1RoleFluent.RulesNested addNewRule();

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

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

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

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

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

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

  public interface MetadataNested
      extends 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