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

io.kubernetes.client.models.V1ContainerImageBuilder Maven / Gradle / Ivy

package io.kubernetes.client.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class V1ContainerImageBuilder extends V1ContainerImageFluentImpl implements VisitableBuilder{

    V1ContainerImageFluent fluent;
    Boolean validationEnabled;

    public V1ContainerImageBuilder(){
            this(true);
    }
    public V1ContainerImageBuilder(Boolean validationEnabled){
            this(new V1ContainerImage(), validationEnabled);
    }
    public V1ContainerImageBuilder(V1ContainerImageFluent fluent){
            this(fluent, true);
    }
    public V1ContainerImageBuilder(V1ContainerImageFluent fluent,Boolean validationEnabled){
            this(fluent, new V1ContainerImage(), validationEnabled);
    }
    public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance){
            this(fluent, instance, true);
    }
    public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withNames(instance.getNames());

            fluent.withSizeBytes(instance.getSizeBytes());

            this.validationEnabled = validationEnabled; 
    }
    public V1ContainerImageBuilder(V1ContainerImage instance){
            this(instance,true);
    }
    public V1ContainerImageBuilder(V1ContainerImage instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withNames(instance.getNames());

            this.withSizeBytes(instance.getSizeBytes());

            this.validationEnabled = validationEnabled; 
    }

    public V1ContainerImage build(){
            V1ContainerImage buildable = new V1ContainerImage();
            buildable.setNames(fluent.getNames());
            buildable.setSizeBytes(fluent.getSizeBytes());
            return buildable;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            V1ContainerImageBuilder that = (V1ContainerImageBuilder) 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;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy