annotations.me.snowdrop.servicecatalog.api.model.ClusterServiceClassSpecFluentImpl Maven / Gradle / Ivy
The newest version!
package me.snowdrop.servicecatalog.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import java.util.ArrayList;
import java.lang.String;
import io.fabric8.kubernetes.api.builder.Predicate;
import java.util.LinkedHashMap;
import java.lang.StringBuffer;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.util.Collection;
import java.lang.Object;
import java.util.List;
import java.lang.Boolean;
import java.util.Map;
public class ClusterServiceClassSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ClusterServiceClassSpecFluent{
private Boolean bindable;
private Boolean bindingRetrievable;
private String clusterServiceBrokerName;
private String description;
private String externalID;
private Map externalMetadata;
private String externalName;
private Boolean planUpdatable;
private List requires;
private List tags;
public ClusterServiceClassSpecFluentImpl(){
}
public ClusterServiceClassSpecFluentImpl(ClusterServiceClassSpec instance){
this.withBindable(instance.getBindable());
this.withBindingRetrievable(instance.getBindingRetrievable());
this.withClusterServiceBrokerName(instance.getClusterServiceBrokerName());
this.withDescription(instance.getDescription());
this.withExternalID(instance.getExternalID());
this.withExternalMetadata(instance.getExternalMetadata());
this.withExternalName(instance.getExternalName());
this.withPlanUpdatable(instance.getPlanUpdatable());
this.withRequires(instance.getRequires());
this.withTags(instance.getTags());
}
public Boolean isBindable(){
return this.bindable;
}
public A withBindable(Boolean bindable){
this.bindable=bindable; return (A) this;
}
public Boolean hasBindable(){
return this.bindable != null;
}
public A withNewBindable(String arg1){
return (A)withBindable(new Boolean(arg1));
}
public A withNewBindable(boolean arg1){
return (A)withBindable(new Boolean(arg1));
}
public Boolean isBindingRetrievable(){
return this.bindingRetrievable;
}
public A withBindingRetrievable(Boolean bindingRetrievable){
this.bindingRetrievable=bindingRetrievable; return (A) this;
}
public Boolean hasBindingRetrievable(){
return this.bindingRetrievable != null;
}
public A withNewBindingRetrievable(String arg1){
return (A)withBindingRetrievable(new Boolean(arg1));
}
public A withNewBindingRetrievable(boolean arg1){
return (A)withBindingRetrievable(new Boolean(arg1));
}
public String getClusterServiceBrokerName(){
return this.clusterServiceBrokerName;
}
public A withClusterServiceBrokerName(String clusterServiceBrokerName){
this.clusterServiceBrokerName=clusterServiceBrokerName; return (A) this;
}
public Boolean hasClusterServiceBrokerName(){
return this.clusterServiceBrokerName != null;
}
public A withNewClusterServiceBrokerName(String arg1){
return (A)withClusterServiceBrokerName(new String(arg1));
}
public A withNewClusterServiceBrokerName(StringBuilder arg1){
return (A)withClusterServiceBrokerName(new String(arg1));
}
public A withNewClusterServiceBrokerName(StringBuffer arg1){
return (A)withClusterServiceBrokerName(new String(arg1));
}
public String getDescription(){
return this.description;
}
public A withDescription(String description){
this.description=description; return (A) this;
}
public Boolean hasDescription(){
return this.description != null;
}
public A withNewDescription(String arg1){
return (A)withDescription(new String(arg1));
}
public A withNewDescription(StringBuilder arg1){
return (A)withDescription(new String(arg1));
}
public A withNewDescription(StringBuffer arg1){
return (A)withDescription(new String(arg1));
}
public String getExternalID(){
return this.externalID;
}
public A withExternalID(String externalID){
this.externalID=externalID; return (A) this;
}
public Boolean hasExternalID(){
return this.externalID != null;
}
public A withNewExternalID(String arg1){
return (A)withExternalID(new String(arg1));
}
public A withNewExternalID(StringBuilder arg1){
return (A)withExternalID(new String(arg1));
}
public A withNewExternalID(StringBuffer arg1){
return (A)withExternalID(new String(arg1));
}
public A addToExternalMetadata(String key,Object value){
if(this.externalMetadata == null && key != null && value != null) { this.externalMetadata = new LinkedHashMap(); }
if(key != null && value != null) {this.externalMetadata.put(key, value);} return (A)this;
}
public A addToExternalMetadata(Map map){
if(this.externalMetadata == null && map != null) { this.externalMetadata = new LinkedHashMap(); }
if(map != null) { this.externalMetadata.putAll(map);} return (A)this;
}
public A removeFromExternalMetadata(String key){
if(this.externalMetadata == null) { return (A) this; }
if(key != null && this.externalMetadata != null) {this.externalMetadata.remove(key);} return (A)this;
}
public A removeFromExternalMetadata(Map map){
if(this.externalMetadata == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.externalMetadata != null){this.externalMetadata.remove(key);}}} return (A)this;
}
public Map getExternalMetadata(){
return this.externalMetadata;
}
public A withExternalMetadata(Map externalMetadata){
if (externalMetadata == null) { this.externalMetadata = null;} else {this.externalMetadata = new LinkedHashMap(externalMetadata);} return (A) this;
}
public Boolean hasExternalMetadata(){
return this.externalMetadata != null;
}
public String getExternalName(){
return this.externalName;
}
public A withExternalName(String externalName){
this.externalName=externalName; return (A) this;
}
public Boolean hasExternalName(){
return this.externalName != null;
}
public A withNewExternalName(String arg1){
return (A)withExternalName(new String(arg1));
}
public A withNewExternalName(StringBuilder arg1){
return (A)withExternalName(new String(arg1));
}
public A withNewExternalName(StringBuffer arg1){
return (A)withExternalName(new String(arg1));
}
public Boolean isPlanUpdatable(){
return this.planUpdatable;
}
public A withPlanUpdatable(Boolean planUpdatable){
this.planUpdatable=planUpdatable; return (A) this;
}
public Boolean hasPlanUpdatable(){
return this.planUpdatable != null;
}
public A withNewPlanUpdatable(String arg1){
return (A)withPlanUpdatable(new Boolean(arg1));
}
public A withNewPlanUpdatable(boolean arg1){
return (A)withPlanUpdatable(new Boolean(arg1));
}
public A addToRequires(int index,String item){
if (this.requires == null) {this.requires = new ArrayList();}
this.requires.add(index, item);
return (A)this;
}
public A setToRequires(int index,String item){
if (this.requires == null) {this.requires = new ArrayList();}
this.requires.set(index, item); return (A)this;
}
public A addToRequires(String... items){
if (this.requires == null) {this.requires = new ArrayList();}
for (String item : items) {this.requires.add(item);} return (A)this;
}
public A addAllToRequires(Collection items){
if (this.requires == null) {this.requires = new ArrayList();}
for (String item : items) {this.requires.add(item);} return (A)this;
}
public A removeFromRequires(String... items){
for (String item : items) {if (this.requires!= null){ this.requires.remove(item);}} return (A)this;
}
public A removeAllFromRequires(Collection items){
for (String item : items) {if (this.requires!= null){ this.requires.remove(item);}} return (A)this;
}
public List getRequires(){
return this.requires;
}
public String getRequire(int index){
return this.requires.get(index);
}
public String getFirstRequire(){
return this.requires.get(0);
}
public String getLastRequire(){
return this.requires.get(requires.size() - 1);
}
public String getMatchingRequire(io.fabric8.kubernetes.api.builder.Predicate predicate){
for (String item: requires) { if(predicate.apply(item)){return item;} } return null;
}
public Boolean hasMatchingRequire(io.fabric8.kubernetes.api.builder.Predicate predicate){
for (String item: requires) { if(predicate.apply(item)){return true;} } return false;
}
public A withRequires(List requires){
if (this.requires != null) { _visitables.get("requires").removeAll(this.requires);}
if (requires != null) {this.requires = new ArrayList(); for (String item : requires){this.addToRequires(item);}} else { this.requires = null;} return (A) this;
}
public A withRequires(String... requires){
if (this.requires != null) {this.requires.clear();}
if (requires != null) {for (String item :requires){ this.addToRequires(item);}} return (A) this;
}
public Boolean hasRequires(){
return requires != null && !requires.isEmpty();
}
public A addNewRequire(String arg1){
return (A)addToRequires(new String(arg1));
}
public A addNewRequire(StringBuilder arg1){
return (A)addToRequires(new String(arg1));
}
public A addNewRequire(StringBuffer arg1){
return (A)addToRequires(new String(arg1));
}
public A addToTags(int index,String item){
if (this.tags == null) {this.tags = new ArrayList();}
this.tags.add(index, item);
return (A)this;
}
public A setToTags(int index,String item){
if (this.tags == null) {this.tags = new ArrayList();}
this.tags.set(index, item); return (A)this;
}
public A addToTags(String... items){
if (this.tags == null) {this.tags = new ArrayList();}
for (String item : items) {this.tags.add(item);} return (A)this;
}
public A addAllToTags(Collection items){
if (this.tags == null) {this.tags = new ArrayList();}
for (String item : items) {this.tags.add(item);} return (A)this;
}
public A removeFromTags(String... items){
for (String item : items) {if (this.tags!= null){ this.tags.remove(item);}} return (A)this;
}
public A removeAllFromTags(Collection items){
for (String item : items) {if (this.tags!= null){ this.tags.remove(item);}} return (A)this;
}
public List getTags(){
return this.tags;
}
public String getTag(int index){
return this.tags.get(index);
}
public String getFirstTag(){
return this.tags.get(0);
}
public String getLastTag(){
return this.tags.get(tags.size() - 1);
}
public String getMatchingTag(io.fabric8.kubernetes.api.builder.Predicate predicate){
for (String item: tags) { if(predicate.apply(item)){return item;} } return null;
}
public Boolean hasMatchingTag(io.fabric8.kubernetes.api.builder.Predicate predicate){
for (String item: tags) { if(predicate.apply(item)){return true;} } return false;
}
public A withTags(List tags){
if (this.tags != null) { _visitables.get("tags").removeAll(this.tags);}
if (tags != null) {this.tags = new ArrayList(); for (String item : tags){this.addToTags(item);}} else { this.tags = null;} return (A) this;
}
public A withTags(String... tags){
if (this.tags != null) {this.tags.clear();}
if (tags != null) {for (String item :tags){ this.addToTags(item);}} return (A) this;
}
public Boolean hasTags(){
return tags != null && !tags.isEmpty();
}
public A addNewTag(String arg1){
return (A)addToTags(new String(arg1));
}
public A addNewTag(StringBuilder arg1){
return (A)addToTags(new String(arg1));
}
public A addNewTag(StringBuffer arg1){
return (A)addToTags(new String(arg1));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
ClusterServiceClassSpecFluentImpl that = (ClusterServiceClassSpecFluentImpl) o;
if (bindable != null ? !bindable.equals(that.bindable) :that.bindable != null) return false;
if (bindingRetrievable != null ? !bindingRetrievable.equals(that.bindingRetrievable) :that.bindingRetrievable != null) return false;
if (clusterServiceBrokerName != null ? !clusterServiceBrokerName.equals(that.clusterServiceBrokerName) :that.clusterServiceBrokerName != null) return false;
if (description != null ? !description.equals(that.description) :that.description != null) return false;
if (externalID != null ? !externalID.equals(that.externalID) :that.externalID != null) return false;
if (externalMetadata != null ? !externalMetadata.equals(that.externalMetadata) :that.externalMetadata != null) return false;
if (externalName != null ? !externalName.equals(that.externalName) :that.externalName != null) return false;
if (planUpdatable != null ? !planUpdatable.equals(that.planUpdatable) :that.planUpdatable != null) return false;
if (requires != null ? !requires.equals(that.requires) :that.requires != null) return false;
if (tags != null ? !tags.equals(that.tags) :that.tags != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy