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

annotations.io.alauda.devops.api.model.DeploymentCauseImageTriggerFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.devops.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.Nested;
import io.alauda.kubernetes.api.model.ObjectReferenceFluentImpl;
import io.alauda.kubernetes.api.model.ObjectReference;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.alauda.kubernetes.api.model.ObjectReferenceBuilder;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class DeploymentCauseImageTriggerFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements DeploymentCauseImageTriggerFluent{

    private ObjectReferenceBuilder from;

    public DeploymentCauseImageTriggerFluentImpl(){
    }
    public DeploymentCauseImageTriggerFluentImpl(DeploymentCauseImageTrigger instance){
            this.withFrom(instance.getFrom()); 
    }

    
/**
 * This method has been deprecated, please use method buildFrom instead.
 */
@Deprecated public ObjectReference getFrom(){
            return this.from!=null?this.from.build():null;
    }

    public ObjectReference buildFrom(){
            return this.from!=null?this.from.build():null;
    }

    public A withFrom(ObjectReference from){
            _visitables.remove(this.from);
            if (from!=null){ this.from= new ObjectReferenceBuilder(from); _visitables.add(this.from);} return (A) this;
    }

    public Boolean hasFrom(){
            return this.from!=null;
    }

    public DeploymentCauseImageTriggerFluent.FromNested withNewFrom(){
            return new FromNestedImpl();
    }

    public DeploymentCauseImageTriggerFluent.FromNested withNewFromLike(ObjectReference item){
            return new FromNestedImpl(item);
    }

    public DeploymentCauseImageTriggerFluent.FromNested editFrom(){
            return withNewFromLike(getFrom());
    }

    public DeploymentCauseImageTriggerFluent.FromNested editOrNewFrom(){
            return withNewFromLike(getFrom() != null ? getFrom(): new ObjectReferenceBuilder().build());
    }

    public DeploymentCauseImageTriggerFluent.FromNested editOrNewFromLike(ObjectReference item){
            return withNewFromLike(getFrom() != null ? getFrom(): item);
    }

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


    public class FromNestedImpl extends ObjectReferenceFluentImpl> implements DeploymentCauseImageTriggerFluent.FromNested,io.alauda.kubernetes.api.builder.Nested{

            private final ObjectReferenceBuilder builder;
    
            FromNestedImpl(ObjectReference item){
                    this.builder = new ObjectReferenceBuilder(this, item);
            }
            FromNestedImpl(){
                    this.builder = new ObjectReferenceBuilder(this);
            }
    
    public N and(){
            return (N) DeploymentCauseImageTriggerFluentImpl.this.withFrom(builder.build());
    }
    public N endFrom(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy