io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder Maven / Gradle / Ivy
/*
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.VisitableBuilder;
public class V1TokenReviewStatusBuilder
extends V1TokenReviewStatusFluentImpl
implements VisitableBuilder<
V1TokenReviewStatus, io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder> {
public V1TokenReviewStatusBuilder() {
this(false);
}
public V1TokenReviewStatusBuilder(Boolean validationEnabled) {
this(new V1TokenReviewStatus(), validationEnabled);
}
public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent> fluent) {
this(fluent, false);
}
public V1TokenReviewStatusBuilder(
io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent> fluent,
java.lang.Boolean validationEnabled) {
this(fluent, new V1TokenReviewStatus(), validationEnabled);
}
public V1TokenReviewStatusBuilder(
io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent> fluent,
io.kubernetes.client.openapi.models.V1TokenReviewStatus instance) {
this(fluent, instance, false);
}
public V1TokenReviewStatusBuilder(
io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent> fluent,
io.kubernetes.client.openapi.models.V1TokenReviewStatus instance,
java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withAudiences(instance.getAudiences());
fluent.withAuthenticated(instance.getAuthenticated());
fluent.withError(instance.getError());
fluent.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public V1TokenReviewStatusBuilder(
io.kubernetes.client.openapi.models.V1TokenReviewStatus instance) {
this(instance, false);
}
public V1TokenReviewStatusBuilder(
io.kubernetes.client.openapi.models.V1TokenReviewStatus instance,
java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withAudiences(instance.getAudiences());
this.withAuthenticated(instance.getAuthenticated());
this.withError(instance.getError());
this.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent> fluent;
java.lang.Boolean validationEnabled;
public io.kubernetes.client.openapi.models.V1TokenReviewStatus build() {
V1TokenReviewStatus buildable = new V1TokenReviewStatus();
buildable.setAudiences(fluent.getAudiences());
buildable.setAuthenticated(fluent.getAuthenticated());
buildable.setError(fluent.getError());
buildable.setUser(fluent.getUser());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy