io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluentImpl implements VisitableBuilder{
public StorageV1TokenRequestBuilder() {
this(false);
}
public StorageV1TokenRequestBuilder(Boolean validationEnabled) {
this(new StorageV1TokenRequest(), validationEnabled);
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent> fluent) {
this(fluent, false);
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent> fluent,Boolean validationEnabled) {
this(fluent, new StorageV1TokenRequest(), validationEnabled);
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent> fluent,StorageV1TokenRequest instance) {
this(fluent, instance, false);
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent> fluent,StorageV1TokenRequest instance,Boolean validationEnabled) {
this.fluent = fluent;
if (instance != null) {
fluent.withAudience(instance.getAudience());
fluent.withExpirationSeconds(instance.getExpirationSeconds());
}
this.validationEnabled = validationEnabled;
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) {
this(instance,false);
}
public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance,Boolean validationEnabled) {
this.fluent = this;
if (instance != null) {
this.withAudience(instance.getAudience());
this.withExpirationSeconds(instance.getExpirationSeconds());
}
this.validationEnabled = validationEnabled;
}
StorageV1TokenRequestFluent> fluent;
Boolean validationEnabled;
public StorageV1TokenRequest build() {
StorageV1TokenRequest buildable = new StorageV1TokenRequest();
buildable.setAudience(fluent.getAudience());
buildable.setExpirationSeconds(fluent.getExpirationSeconds());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy