
io.fabric8.kubernetes.api.model.authentication.UserInfoBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.authentication;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class UserInfoBuilder extends io.fabric8.kubernetes.api.model.authentication.UserInfoFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
public UserInfoBuilder() {
this(false);
}
public UserInfoBuilder(java.lang.Boolean validationEnabled) {
this(new UserInfo(), validationEnabled);
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfoFluent> fluent) {
this(fluent, false);
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfoFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new UserInfo(), validationEnabled);
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfoFluent> fluent,io.fabric8.kubernetes.api.model.authentication.UserInfo instance) {
this(fluent, instance, false);
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfoFluent> fluent,io.fabric8.kubernetes.api.model.authentication.UserInfo instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withExtra(instance.getExtra());
fluent.withGroups(instance.getGroups());
fluent.withUid(instance.getUid());
fluent.withUsername(instance.getUsername());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfo instance) {
this(instance,false);
}
public UserInfoBuilder(io.fabric8.kubernetes.api.model.authentication.UserInfo instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withExtra(instance.getExtra());
this.withGroups(instance.getGroups());
this.withUid(instance.getUid());
this.withUsername(instance.getUsername());
this.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
io.fabric8.kubernetes.api.model.authentication.UserInfoFluent> fluent;
java.lang.Boolean validationEnabled;
public io.fabric8.kubernetes.api.model.authentication.UserInfo build() {
UserInfo buildable = new UserInfo(fluent.getExtra(),fluent.getGroups(),fluent.getUid(),fluent.getUsername());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
UserInfoBuilder that = (UserInfoBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy