io.kubernetes.client.openapi.models.V1ClusterRoleBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
public class V1ClusterRoleBuilder extends V1ClusterRoleFluent implements VisitableBuilder{
public V1ClusterRoleBuilder() {
this(new V1ClusterRole());
}
public V1ClusterRoleBuilder(V1ClusterRoleFluent> fluent) {
this(fluent, new V1ClusterRole());
}
public V1ClusterRoleBuilder(V1ClusterRoleFluent> fluent,V1ClusterRole instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public V1ClusterRoleBuilder(V1ClusterRole instance) {
this.fluent = this;
this.copyInstance(instance);
}
V1ClusterRoleFluent> fluent;
public V1ClusterRole build() {
V1ClusterRole buildable = new V1ClusterRole();
buildable.setAggregationRule(fluent.buildAggregationRule());
buildable.setApiVersion(fluent.getApiVersion());
buildable.setKind(fluent.getKind());
buildable.setMetadata(fluent.buildMetadata());
buildable.setRules(fluent.buildRules());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy