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

io.fabric8.openshift.api.model.DeploymentConfigStatusFluentImpl Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Object;
import io.fabric8.kubernetes.api.builder.Nested;

public class DeploymentConfigStatusFluentImpl> extends BaseFluent implements DeploymentConfigStatusFluent{

    private VisitableBuilder details;
    private Integer latestVersion;
    private Long observedGeneration;

    public DeploymentConfigStatusFluentImpl(){
    }
    public DeploymentConfigStatusFluentImpl(DeploymentConfigStatus instance){
            this.withDetails(instance.getDetails()); 
            this.withLatestVersion(instance.getLatestVersion()); 
            this.withObservedGeneration(instance.getObservedGeneration()); 
    }

    public DeploymentDetails getDetails(){
            return this.details!=null?this.details.build():null;
    }

    public A withDetails(DeploymentDetails details){
            if (details!=null){ this.details= new DeploymentDetailsBuilder(details); _visitables.add(this.details);} return (A) this;
    }

    public DeploymentConfigStatusFluent.DetailsNested withNewDetails(){
            return new DetailsNestedImpl();
    }

    public DeploymentConfigStatusFluent.DetailsNested withNewDetailsLike(DeploymentDetails item){
            return new DetailsNestedImpl(item);
    }

    public DeploymentConfigStatusFluent.DetailsNested editDetails(){
            return withNewDetailsLike(getDetails());
    }

    public Integer getLatestVersion(){
            return this.latestVersion;
    }

    public A withLatestVersion(Integer latestVersion){
            this.latestVersion=latestVersion; return (A) this;
    }

    public Long getObservedGeneration(){
            return this.observedGeneration;
    }

    public A withObservedGeneration(Long observedGeneration){
            this.observedGeneration=observedGeneration; return (A) this;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            DeploymentConfigStatusFluentImpl that = (DeploymentConfigStatusFluentImpl) o;
            if (details != null ? !details.equals(that.details) :that.details != null) return false;
            if (latestVersion != null ? !latestVersion.equals(that.latestVersion) :that.latestVersion != null) return false;
            if (observedGeneration != null ? !observedGeneration.equals(that.observedGeneration) :that.observedGeneration != null) return false;
            return true;
    }


    public class DetailsNestedImpl extends DeploymentDetailsFluentImpl> implements DeploymentConfigStatusFluent.DetailsNested,Nested{

            private final DeploymentDetailsBuilder builder;
    
            DetailsNestedImpl(){
                    this.builder = new DeploymentDetailsBuilder(this);
            }
            DetailsNestedImpl(DeploymentDetails item){
                    this.builder = new DeploymentDetailsBuilder(this, item);
            }
    
    public N and(){
            return (N) DeploymentConfigStatusFluentImpl.this.withDetails(builder.build());
    }
    public N endDetails(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy