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

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

The newest version!
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1ResourceRuleBuilder extends V1ResourceRuleFluent implements VisitableBuilder{
  public V1ResourceRuleBuilder() {
    this(new V1ResourceRule());
  }
  
  public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent) {
    this(fluent, new V1ResourceRule());
  }
  
  public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1ResourceRuleBuilder(V1ResourceRule instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1ResourceRuleFluent fluent;
  
  public V1ResourceRule build() {
    V1ResourceRule buildable = new V1ResourceRule();
    buildable.setApiGroups(fluent.getApiGroups());
    buildable.setResourceNames(fluent.getResourceNames());
    buildable.setResources(fluent.getResources());
    buildable.setVerbs(fluent.getVerbs());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy