All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.kubernetes.api.model.PodSpecBuilder Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class PodSpecBuilder extends io.fabric8.kubernetes.api.model.PodSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
  public PodSpecBuilder() {
    this(false);
  }
  public PodSpecBuilder(java.lang.Boolean validationEnabled) {
    this(new PodSpec(), validationEnabled);
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecFluent fluent) {
    this(fluent, false);
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new PodSpec(), validationEnabled);
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecFluent fluent,io.fabric8.kubernetes.api.model.PodSpec instance) {
    this(fluent, instance, false);
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecFluent fluent,io.fabric8.kubernetes.api.model.PodSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); 
    fluent.withAffinity(instance.getAffinity()); 
    fluent.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); 
    fluent.withContainers(instance.getContainers()); 
    fluent.withDnsConfig(instance.getDnsConfig()); 
    fluent.withDnsPolicy(instance.getDnsPolicy()); 
    fluent.withEnableServiceLinks(instance.getEnableServiceLinks()); 
    fluent.withEphemeralContainers(instance.getEphemeralContainers()); 
    fluent.withHostAliases(instance.getHostAliases()); 
    fluent.withHostIPC(instance.getHostIPC()); 
    fluent.withHostNetwork(instance.getHostNetwork()); 
    fluent.withHostPID(instance.getHostPID()); 
    fluent.withHostname(instance.getHostname()); 
    fluent.withImagePullSecrets(instance.getImagePullSecrets()); 
    fluent.withInitContainers(instance.getInitContainers()); 
    fluent.withNodeName(instance.getNodeName()); 
    fluent.withNodeSelector(instance.getNodeSelector()); 
    fluent.withOs(instance.getOs()); 
    fluent.withOverhead(instance.getOverhead()); 
    fluent.withPreemptionPolicy(instance.getPreemptionPolicy()); 
    fluent.withPriority(instance.getPriority()); 
    fluent.withPriorityClassName(instance.getPriorityClassName()); 
    fluent.withReadinessGates(instance.getReadinessGates()); 
    fluent.withRestartPolicy(instance.getRestartPolicy()); 
    fluent.withRuntimeClassName(instance.getRuntimeClassName()); 
    fluent.withSchedulerName(instance.getSchedulerName()); 
    fluent.withSecurityContext(instance.getSecurityContext()); 
    fluent.withServiceAccount(instance.getServiceAccount()); 
    fluent.withServiceAccountName(instance.getServiceAccountName()); 
    fluent.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); 
    fluent.withShareProcessNamespace(instance.getShareProcessNamespace()); 
    fluent.withSubdomain(instance.getSubdomain()); 
    fluent.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); 
    fluent.withTolerations(instance.getTolerations()); 
    fluent.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); 
    fluent.withVolumes(instance.getVolumes()); 
    fluent.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpec instance) {
    this(instance,false);
  }
  public PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpec instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); 
    this.withAffinity(instance.getAffinity()); 
    this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); 
    this.withContainers(instance.getContainers()); 
    this.withDnsConfig(instance.getDnsConfig()); 
    this.withDnsPolicy(instance.getDnsPolicy()); 
    this.withEnableServiceLinks(instance.getEnableServiceLinks()); 
    this.withEphemeralContainers(instance.getEphemeralContainers()); 
    this.withHostAliases(instance.getHostAliases()); 
    this.withHostIPC(instance.getHostIPC()); 
    this.withHostNetwork(instance.getHostNetwork()); 
    this.withHostPID(instance.getHostPID()); 
    this.withHostname(instance.getHostname()); 
    this.withImagePullSecrets(instance.getImagePullSecrets()); 
    this.withInitContainers(instance.getInitContainers()); 
    this.withNodeName(instance.getNodeName()); 
    this.withNodeSelector(instance.getNodeSelector()); 
    this.withOs(instance.getOs()); 
    this.withOverhead(instance.getOverhead()); 
    this.withPreemptionPolicy(instance.getPreemptionPolicy()); 
    this.withPriority(instance.getPriority()); 
    this.withPriorityClassName(instance.getPriorityClassName()); 
    this.withReadinessGates(instance.getReadinessGates()); 
    this.withRestartPolicy(instance.getRestartPolicy()); 
    this.withRuntimeClassName(instance.getRuntimeClassName()); 
    this.withSchedulerName(instance.getSchedulerName()); 
    this.withSecurityContext(instance.getSecurityContext()); 
    this.withServiceAccount(instance.getServiceAccount()); 
    this.withServiceAccountName(instance.getServiceAccountName()); 
    this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); 
    this.withShareProcessNamespace(instance.getShareProcessNamespace()); 
    this.withSubdomain(instance.getSubdomain()); 
    this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); 
    this.withTolerations(instance.getTolerations()); 
    this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); 
    this.withVolumes(instance.getVolumes()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.kubernetes.api.model.PodSpecFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.kubernetes.api.model.PodSpec build() {
    PodSpec buildable = new PodSpec(fluent.getActiveDeadlineSeconds(),fluent.getAffinity(),fluent.getAutomountServiceAccountToken(),fluent.getContainers(),fluent.getDnsConfig(),fluent.getDnsPolicy(),fluent.getEnableServiceLinks(),fluent.getEphemeralContainers(),fluent.getHostAliases(),fluent.getHostIPC(),fluent.getHostNetwork(),fluent.getHostPID(),fluent.getHostname(),fluent.getImagePullSecrets(),fluent.getInitContainers(),fluent.getNodeName(),fluent.getNodeSelector(),fluent.getOs(),fluent.getOverhead(),fluent.getPreemptionPolicy(),fluent.getPriority(),fluent.getPriorityClassName(),fluent.getReadinessGates(),fluent.getRestartPolicy(),fluent.getRuntimeClassName(),fluent.getSchedulerName(),fluent.getSecurityContext(),fluent.getServiceAccount(),fluent.getServiceAccountName(),fluent.getSetHostnameAsFQDN(),fluent.getShareProcessNamespace(),fluent.getSubdomain(),fluent.getTerminationGracePeriodSeconds(),fluent.getTolerations(),fluent.getTopologySpreadConstraints(),fluent.getVolumes());
    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;
    PodSpecBuilder that = (PodSpecBuilder) 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