io.fabric8.kubernetes.api.model.authentication.UserInfoBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.authentication;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class UserInfoBuilder extends UserInfoFluent implements VisitableBuilder{
public UserInfoBuilder() {
this(new UserInfo());
}
public UserInfoBuilder(UserInfoFluent> fluent) {
this(fluent, new UserInfo());
}
public UserInfoBuilder(UserInfoFluent> fluent,UserInfo instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public UserInfoBuilder(UserInfo instance) {
this.fluent = this;
this.copyInstance(instance);
}
UserInfoFluent> fluent;
public UserInfo build() {
UserInfo buildable = new UserInfo(fluent.getExtra(),fluent.getGroups(),fluent.getUid(),fluent.getUsername());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy