
io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder 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 V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluentImpl
implements VisitableBuilder<
V1RBDVolumeSource, io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder> {
public V1RBDVolumeSourceBuilder() {
this(false);
}
public V1RBDVolumeSourceBuilder(Boolean validationEnabled) {
this(new V1RBDVolumeSource(), validationEnabled);
}
public V1RBDVolumeSourceBuilder(
io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent> fluent) {
this(fluent, false);
}
public V1RBDVolumeSourceBuilder(
io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent> fluent,
java.lang.Boolean validationEnabled) {
this(fluent, new V1RBDVolumeSource(), validationEnabled);
}
public V1RBDVolumeSourceBuilder(
io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent> fluent,
io.kubernetes.client.openapi.models.V1RBDVolumeSource instance) {
this(fluent, instance, false);
}
public V1RBDVolumeSourceBuilder(
io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent> fluent,
io.kubernetes.client.openapi.models.V1RBDVolumeSource instance,
java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withFsType(instance.getFsType());
fluent.withImage(instance.getImage());
fluent.withKeyring(instance.getKeyring());
fluent.withMonitors(instance.getMonitors());
fluent.withPool(instance.getPool());
fluent.withReadOnly(instance.getReadOnly());
fluent.withSecretRef(instance.getSecretRef());
fluent.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
public V1RBDVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1RBDVolumeSource instance) {
this(instance, false);
}
public V1RBDVolumeSourceBuilder(
io.kubernetes.client.openapi.models.V1RBDVolumeSource instance,
java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withFsType(instance.getFsType());
this.withImage(instance.getImage());
this.withKeyring(instance.getKeyring());
this.withMonitors(instance.getMonitors());
this.withPool(instance.getPool());
this.withReadOnly(instance.getReadOnly());
this.withSecretRef(instance.getSecretRef());
this.withUser(instance.getUser());
this.validationEnabled = validationEnabled;
}
io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent> fluent;
java.lang.Boolean validationEnabled;
public io.kubernetes.client.openapi.models.V1RBDVolumeSource build() {
V1RBDVolumeSource buildable = new V1RBDVolumeSource();
buildable.setFsType(fluent.getFsType());
buildable.setImage(fluent.getImage());
buildable.setKeyring(fluent.getKeyring());
buildable.setMonitors(fluent.getMonitors());
buildable.setPool(fluent.getPool());
buildable.setReadOnly(fluent.getReadOnly());
buildable.setSecretRef(fluent.getSecretRef());
buildable.setUser(fluent.getUser());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy