com.github.dockerjava.core.command.JoinSwarmCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.command.JoinSwarmCmd;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javax.annotation.CheckForNull;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class JoinSwarmCmdImpl extends AbstrDockerCmd implements
JoinSwarmCmd {
@JsonProperty("ListenAddr")
private String listenAddr = "0.0.0.0";
@JsonProperty("AdvertiseAddr")
private String advertiseAddr;
@JsonProperty("RemoteAddrs")
private List remoteAddrs;
@JsonProperty("JoinToken")
private String joinToken;
public JoinSwarmCmdImpl(JoinSwarmCmd.Exec exec) {
super(exec);
}
@Override
@CheckForNull
public String getListenAddr() {
return listenAddr;
}
@Override
public JoinSwarmCmd withListenAddr(String listenAddr) {
this.listenAddr = listenAddr;
return this;
}
@Override
@CheckForNull
public String getAdvertiseAddr() {
return advertiseAddr;
}
@Override
public JoinSwarmCmd withAdvertiseAddr(String advertiseAddr) {
this.advertiseAddr = advertiseAddr;
return this;
}
@Override
@CheckForNull
public List getRemoteAddrs() {
return remoteAddrs;
}
@Override
public JoinSwarmCmd withRemoteAddrs(List remoteAddrs) {
this.remoteAddrs = remoteAddrs;
return this;
}
@Override
@CheckForNull
public String getJoinToken() {
return joinToken;
}
@Override
public JoinSwarmCmd withJoinToken(String joinToken) {
this.joinToken = joinToken;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy