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

io.alauda.kubernetes.api.model.GlobalParameterFluentImpl Maven / Gradle / Ivy

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

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

public class GlobalParameterFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements GlobalParameterFluent{

    private I18nNameBuilder description;
    private String name;

    public GlobalParameterFluentImpl(){
    }
    public GlobalParameterFluentImpl(GlobalParameter instance){
            this.withDescription(instance.getDescription()); 
            this.withName(instance.getName()); 
    }

    
/**
 * This method has been deprecated, please use method buildDescription instead.
 */
@Deprecated public I18nName getDescription(){
            return this.description!=null?this.description.build():null;
    }

    public I18nName buildDescription(){
            return this.description!=null?this.description.build():null;
    }

    public A withDescription(I18nName description){
            _visitables.remove(this.description);
            if (description!=null){ this.description= new I18nNameBuilder(description); _visitables.add(this.description);} return (A) this;
    }

    public Boolean hasDescription(){
            return this.description!=null;
    }

    public GlobalParameterFluent.DescriptionNested withNewDescription(){
            return new DescriptionNestedImpl();
    }

    public GlobalParameterFluent.DescriptionNested withNewDescriptionLike(I18nName item){
            return new DescriptionNestedImpl(item);
    }

    public GlobalParameterFluent.DescriptionNested editDescription(){
            return withNewDescriptionLike(getDescription());
    }

    public GlobalParameterFluent.DescriptionNested editOrNewDescription(){
            return withNewDescriptionLike(getDescription() != null ? getDescription(): new I18nNameBuilder().build());
    }

    public GlobalParameterFluent.DescriptionNested editOrNewDescriptionLike(I18nName item){
            return withNewDescriptionLike(getDescription() != null ? getDescription(): item);
    }

    public A withNewDescription(String en,String zhCN){
            return (A)withDescription(new I18nName(en, zhCN));
    }

    public String getName(){
            return this.name;
    }

    public A withName(String name){
            this.name=name; return (A) this;
    }

    public Boolean hasName(){
            return this.name!=null;
    }

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


    public class DescriptionNestedImpl extends I18nNameFluentImpl> implements GlobalParameterFluent.DescriptionNested,io.alauda.kubernetes.api.builder.Nested{

            private final I18nNameBuilder builder;
    
            DescriptionNestedImpl(I18nName item){
                    this.builder = new I18nNameBuilder(this, item);
            }
            DescriptionNestedImpl(){
                    this.builder = new I18nNameBuilder(this);
            }
    
    public N and(){
            return (N) GlobalParameterFluentImpl.this.withDescription(builder.build());
    }
    public N endDescription(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy