com.github.dockerjava.api.model.NetworkAttachmentConfig Maven / Gradle / Ivy
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.annotation.CheckForNull;
import java.io.Serializable;
import java.util.List;
/**
* @since {@link RemoteApiVersion#VERSION_1_24}
*/
@EqualsAndHashCode
@ToString
public class NetworkAttachmentConfig extends DockerObject implements Serializable {
public static final long serialVersionUID = 1L;
/**
* @since 1.24
*/
@JsonProperty("Target")
private String target;
/**
* @since 1.24
*/
@JsonProperty("Aliases")
private List aliases;
/**
* @see #target
*/
@CheckForNull
public String getTarget() {
return target;
}
/**
* @see #target
*/
public NetworkAttachmentConfig withTarget(String target) {
this.target = target;
return this;
}
/**
* @see #aliases
*/
@CheckForNull
public List getAliases() {
return aliases;
}
/**
* @see #aliases
*/
public NetworkAttachmentConfig withAliases(List aliases) {
this.aliases = aliases;
return this;
}
}