
annotations.io.fabric8.kubernetes.api.model.ExecActionFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.ArrayList;
import java.util.RandomAccess;
import java.util.Map;
import java.util.Map;
import java.util.List;
import java.util.List;
import java.util.AbstractCollection;
import java.util.AbstractList;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Collection;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.Fluent;
public class ExecActionFluentImpl> extends BaseFluent implements ExecActionFluent{
List command = new ArrayList();
public ExecActionFluentImpl(){
}
public ExecActionFluentImpl( ExecAction instance ){
this.withCommand(instance.getCommand());
}
public A addToCommand( String ...items){
for (String item : items) {this.command.add(item);} return (A)this;
}
public A removeFromCommand( String ...items){
for (String item : items) {this.command.remove(item);} return (A)this;
}
public List getCommand(){
return this.command;
}
public A withCommand( List command){
this.command.clear();if (command != null) {for (String item : command){this.addToCommand(item);}} return (A) this;
}
public A withCommand( String ...command){
this.command.clear(); if (command != null) {for (String item :command){ this.addToCommand(item);}} return (A) this;
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ExecActionFluentImpl that = (ExecActionFluentImpl) o;
if (command != null ? !command.equals(that.command) :that.command != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy