![JAR search and dependency download from the Maven repository](/logo.png)
annotations.io.fabric8.openshift.api.model.DeploymentConfigFluentImpl Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.String;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.model.validators.CheckObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import java.lang.Object;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.model.ObjectMetaFluentImpl;
import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
public class DeploymentConfigFluentImpl> extends BaseFluent implements DeploymentConfigFluent{
private String apiVersion;
private String kind;
private VisitableBuilder extends ObjectMeta,?> metadata;
private VisitableBuilder extends DeploymentConfigSpec,?> spec;
private VisitableBuilder extends DeploymentConfigStatus,?> status;
public DeploymentConfigFluentImpl(){
}
public DeploymentConfigFluentImpl(DeploymentConfig instance){
this.withApiVersion(instance.getApiVersion());
this.withKind(instance.getKind());
this.withMetadata(instance.getMetadata());
this.withSpec(instance.getSpec());
this.withStatus(instance.getStatus());
}
public String getApiVersion(){
return this.apiVersion;
}
public A withApiVersion(String apiVersion){
this.apiVersion=apiVersion; return (A) this;
}
public String getKind(){
return this.kind;
}
public A withKind(String kind){
this.kind=kind; return (A) this;
}
public ObjectMeta getMetadata(){
return this.metadata!=null?this.metadata.build():null;
}
public A withMetadata(ObjectMeta metadata){
if (metadata!=null){ this.metadata= new ObjectMetaBuilder(metadata); _visitables.add(this.metadata);} return (A) this;
}
public DeploymentConfigFluent.MetadataNested withNewMetadata(){
return new MetadataNestedImpl();
}
public DeploymentConfigFluent.MetadataNested withNewMetadataLike(ObjectMeta item){
return new MetadataNestedImpl(item);
}
public DeploymentConfigFluent.MetadataNested editMetadata(){
return withNewMetadataLike(getMetadata());
}
public DeploymentConfigSpec getSpec(){
return this.spec!=null?this.spec.build():null;
}
public A withSpec(DeploymentConfigSpec spec){
if (spec!=null){ this.spec= new DeploymentConfigSpecBuilder(spec); _visitables.add(this.spec);} return (A) this;
}
public DeploymentConfigFluent.SpecNested withNewSpec(){
return new SpecNestedImpl();
}
public DeploymentConfigFluent.SpecNested withNewSpecLike(DeploymentConfigSpec item){
return new SpecNestedImpl(item);
}
public DeploymentConfigFluent.SpecNested editSpec(){
return withNewSpecLike(getSpec());
}
public DeploymentConfigStatus getStatus(){
return this.status!=null?this.status.build():null;
}
public A withStatus(DeploymentConfigStatus status){
if (status!=null){ this.status= new DeploymentConfigStatusBuilder(status); _visitables.add(this.status);} return (A) this;
}
public DeploymentConfigFluent.StatusNested withNewStatus(){
return new StatusNestedImpl();
}
public DeploymentConfigFluent.StatusNested withNewStatusLike(DeploymentConfigStatus item){
return new StatusNestedImpl(item);
}
public DeploymentConfigFluent.StatusNested editStatus(){
return withNewStatusLike(getStatus());
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
DeploymentConfigFluentImpl that = (DeploymentConfigFluentImpl) o;
if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false;
if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false;
if (spec != null ? !spec.equals(that.spec) :that.spec != null) return false;
if (status != null ? !status.equals(that.status) :that.status != null) return false;
return true;
}
public class MetadataNestedImpl extends ObjectMetaFluentImpl> implements DeploymentConfigFluent.MetadataNested,Nested{
private final ObjectMetaBuilder builder;
MetadataNestedImpl(){
this.builder = new ObjectMetaBuilder(this);
}
MetadataNestedImpl(ObjectMeta item){
this.builder = new ObjectMetaBuilder(this, item);
}
public N endMetadata(){
return and();
}
public N and(){
return (N) DeploymentConfigFluentImpl.this.withMetadata(builder.build());
}
}
public class SpecNestedImpl extends DeploymentConfigSpecFluentImpl> implements DeploymentConfigFluent.SpecNested,Nested{
private final DeploymentConfigSpecBuilder builder;
SpecNestedImpl(DeploymentConfigSpec item){
this.builder = new DeploymentConfigSpecBuilder(this, item);
}
SpecNestedImpl(){
this.builder = new DeploymentConfigSpecBuilder(this);
}
public N endSpec(){
return and();
}
public N and(){
return (N) DeploymentConfigFluentImpl.this.withSpec(builder.build());
}
}
public class StatusNestedImpl extends DeploymentConfigStatusFluentImpl> implements DeploymentConfigFluent.StatusNested,Nested{
private final DeploymentConfigStatusBuilder builder;
StatusNestedImpl(){
this.builder = new DeploymentConfigStatusBuilder(this);
}
StatusNestedImpl(DeploymentConfigStatus item){
this.builder = new DeploymentConfigStatusBuilder(this, item);
}
public N endStatus(){
return and();
}
public N and(){
return (N) DeploymentConfigFluentImpl.this.withStatus(builder.build());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy