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

annotations.io.fabric8.docker.api.model.IndexInfoFluentImpl Maven / Gradle / Ivy

There is a newer version: 1.0.15
Show newest version
package io.fabric8.docker.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.docker.api.builder.Visitable;
import io.fabric8.docker.api.builder.BaseFluent;
import io.fabric8.docker.api.builder.Fluent;

public class IndexInfoFluentImpl> extends BaseFluent implements IndexInfoFluent{

     List Mirrors = new ArrayList();     String Name;     Boolean Official;     Boolean Secure;     Map additionalProperties = new HashMap();
public IndexInfoFluentImpl(){
    
}
public IndexInfoFluentImpl( IndexInfo instance ){
    this.withMirrors(instance.getMirrors()); this.withName(instance.getName()); this.withOfficial(instance.getOfficial()); this.withSecure(instance.getSecure()); 
}

    public T addToMirrors( String ...items){
    for (String item : items) {this.Mirrors.add(item);} return (T)this;
    }
    public T removeFromMirrors( String ...items){
    for (String item : items) {this.Mirrors.remove(item);} return (T)this;
    }
    public List getMirrors(){
    return this.Mirrors;
    }
    public T withMirrors( List Mirrors){
    this.Mirrors.clear();if (Mirrors != null) {for (String item : Mirrors){this.addToMirrors(item);}} return (T) this;
    }
    public T withMirrors( String ...Mirrors){
    this.Mirrors.clear(); if (Mirrors != null) {for (String item :Mirrors){ this.addToMirrors(item);}} return (T) this;
    }
    public String getName(){
    return this.Name;
    }
    public T withName( String Name){
    this.Name=Name; return (T) this;
    }
    public Boolean isOfficial(){
    return this.Official;
    }
    public T withOfficial( Boolean Official){
    this.Official=Official; return (T) this;
    }
    public Boolean isSecure(){
    return this.Secure;
    }
    public T withSecure( Boolean Secure){
    this.Secure=Secure; return (T) this;
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }
    public T addToAdditionalProperties( Map map){
    if(map != null) { this.additionalProperties.putAll(map);} return (T)this;
    }
    public T removeFromAdditionalProperties( String key){
    if(key != null) {this.additionalProperties.remove(key);} return (T)this;
    }
    public T removeFromAdditionalProperties( Map map){
    if(map != null) { for(Object key : map.keySet()) {this.additionalProperties.remove(key);}} return (T)this;
    }
    public Map getAdditionalProperties(){
    return this.additionalProperties;
    }
    public T withAdditionalProperties( Map additionalProperties){
    this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
    }
    public boolean equals( Object o){
    
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IndexInfoFluentImpl that = (IndexInfoFluentImpl) o;
if (Mirrors != null ? !Mirrors.equals(that.Mirrors) :that.Mirrors != null) return false;
if (Name != null ? !Name.equals(that.Name) :that.Name != null) return false;
if (Official != null ? !Official.equals(that.Official) :that.Official != null) return false;
if (Secure != null ? !Secure.equals(that.Secure) :that.Secure != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;

    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy