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

annotations.me.snowdrop.servicecatalog.api.model.ServiceInstancePropertiesStateFluentImpl Maven / Gradle / Ivy

The newest version!
package me.snowdrop.servicecatalog.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.util.LinkedHashMap;
import java.lang.StringBuffer;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import java.util.Map;

public class ServiceInstancePropertiesStateFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ServiceInstancePropertiesStateFluent{

    private String clusterServicePlanExternalID;
    private String clusterServicePlanExternalName;
    private String parameterChecksum;
    private Map parameters;
    private UserInfoBuilder userInfo;

    public ServiceInstancePropertiesStateFluentImpl(){
    }
    public ServiceInstancePropertiesStateFluentImpl(ServiceInstancePropertiesState instance){
            this.withClusterServicePlanExternalID(instance.getClusterServicePlanExternalID()); 
            this.withClusterServicePlanExternalName(instance.getClusterServicePlanExternalName()); 
            this.withParameterChecksum(instance.getParameterChecksum()); 
            this.withParameters(instance.getParameters()); 
            this.withUserInfo(instance.getUserInfo()); 
    }

    public String getClusterServicePlanExternalID(){
            return this.clusterServicePlanExternalID;
    }

    public A withClusterServicePlanExternalID(String clusterServicePlanExternalID){
            this.clusterServicePlanExternalID=clusterServicePlanExternalID; return (A) this;
    }

    public Boolean hasClusterServicePlanExternalID(){
            return this.clusterServicePlanExternalID != null;
    }

    public A withNewClusterServicePlanExternalID(String arg1){
            return (A)withClusterServicePlanExternalID(new String(arg1));
    }

    public A withNewClusterServicePlanExternalID(StringBuilder arg1){
            return (A)withClusterServicePlanExternalID(new String(arg1));
    }

    public A withNewClusterServicePlanExternalID(StringBuffer arg1){
            return (A)withClusterServicePlanExternalID(new String(arg1));
    }

    public String getClusterServicePlanExternalName(){
            return this.clusterServicePlanExternalName;
    }

    public A withClusterServicePlanExternalName(String clusterServicePlanExternalName){
            this.clusterServicePlanExternalName=clusterServicePlanExternalName; return (A) this;
    }

    public Boolean hasClusterServicePlanExternalName(){
            return this.clusterServicePlanExternalName != null;
    }

    public A withNewClusterServicePlanExternalName(String arg1){
            return (A)withClusterServicePlanExternalName(new String(arg1));
    }

    public A withNewClusterServicePlanExternalName(StringBuilder arg1){
            return (A)withClusterServicePlanExternalName(new String(arg1));
    }

    public A withNewClusterServicePlanExternalName(StringBuffer arg1){
            return (A)withClusterServicePlanExternalName(new String(arg1));
    }

    public String getParameterChecksum(){
            return this.parameterChecksum;
    }

    public A withParameterChecksum(String parameterChecksum){
            this.parameterChecksum=parameterChecksum; return (A) this;
    }

    public Boolean hasParameterChecksum(){
            return this.parameterChecksum != null;
    }

    public A withNewParameterChecksum(String arg1){
            return (A)withParameterChecksum(new String(arg1));
    }

    public A withNewParameterChecksum(StringBuilder arg1){
            return (A)withParameterChecksum(new String(arg1));
    }

    public A withNewParameterChecksum(StringBuffer arg1){
            return (A)withParameterChecksum(new String(arg1));
    }

    public A addToParameters(String key,Object value){
            if(this.parameters == null && key != null && value != null) { this.parameters = new LinkedHashMap(); }
            if(key != null && value != null) {this.parameters.put(key, value);} return (A)this;
    }

    public A addToParameters(Map map){
            if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); }
            if(map != null) { this.parameters.putAll(map);} return (A)this;
    }

    public A removeFromParameters(String key){
            if(this.parameters == null) { return (A) this; }
            if(key != null && this.parameters != null) {this.parameters.remove(key);} return (A)this;
    }

    public A removeFromParameters(Map map){
            if(this.parameters == null) { return (A) this; }
            if(map != null) { for(Object key : map.keySet()) {if (this.parameters != null){this.parameters.remove(key);}}} return (A)this;
    }

    public Map getParameters(){
            return this.parameters;
    }

    public A withParameters(Map parameters){
            if (parameters == null) { this.parameters =  null;} else {this.parameters = new LinkedHashMap(parameters);} return (A) this;
    }

    public Boolean hasParameters(){
            return this.parameters != null;
    }

    
/**
 * This method has been deprecated, please use method buildUserInfo instead.
 * @return The buildable object.
 */
@Deprecated public UserInfo getUserInfo(){
            return this.userInfo!=null?this.userInfo.build():null;
    }

    public UserInfo buildUserInfo(){
            return this.userInfo!=null?this.userInfo.build():null;
    }

    public A withUserInfo(UserInfo userInfo){
            _visitables.get("userInfo").remove(this.userInfo);
            if (userInfo!=null){ this.userInfo= new UserInfoBuilder(userInfo); _visitables.get("userInfo").add(this.userInfo);} return (A) this;
    }

    public Boolean hasUserInfo(){
            return this.userInfo != null;
    }

    public ServiceInstancePropertiesStateFluent.UserInfoNested withNewUserInfo(){
            return new UserInfoNestedImpl();
    }

    public ServiceInstancePropertiesStateFluent.UserInfoNested withNewUserInfoLike(UserInfo item){
            return new UserInfoNestedImpl(item);
    }

    public ServiceInstancePropertiesStateFluent.UserInfoNested editUserInfo(){
            return withNewUserInfoLike(getUserInfo());
    }

    public ServiceInstancePropertiesStateFluent.UserInfoNested editOrNewUserInfo(){
            return withNewUserInfoLike(getUserInfo() != null ? getUserInfo(): new UserInfoBuilder().build());
    }

    public ServiceInstancePropertiesStateFluent.UserInfoNested editOrNewUserInfoLike(UserInfo item){
            return withNewUserInfoLike(getUserInfo() != null ? getUserInfo(): 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;
            ServiceInstancePropertiesStateFluentImpl that = (ServiceInstancePropertiesStateFluentImpl) o;
            if (clusterServicePlanExternalID != null ? !clusterServicePlanExternalID.equals(that.clusterServicePlanExternalID) :that.clusterServicePlanExternalID != null) return false;
            if (clusterServicePlanExternalName != null ? !clusterServicePlanExternalName.equals(that.clusterServicePlanExternalName) :that.clusterServicePlanExternalName != null) return false;
            if (parameterChecksum != null ? !parameterChecksum.equals(that.parameterChecksum) :that.parameterChecksum != null) return false;
            if (parameters != null ? !parameters.equals(that.parameters) :that.parameters != null) return false;
            if (userInfo != null ? !userInfo.equals(that.userInfo) :that.userInfo != null) return false;
            return true;
    }


    public class UserInfoNestedImpl extends UserInfoFluentImpl> implements ServiceInstancePropertiesStateFluent.UserInfoNested,io.fabric8.kubernetes.api.builder.Nested{

            private final UserInfoBuilder builder;
    
            UserInfoNestedImpl(UserInfo item){
                    this.builder = new UserInfoBuilder(this, item);
            }
            UserInfoNestedImpl(){
                    this.builder = new UserInfoBuilder(this);
            }
    
    public N and(){
            return (N) ServiceInstancePropertiesStateFluentImpl.this.withUserInfo(builder.build());
    }
    public N endUserInfo(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy