forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerDNSConfig.java
More file actions
53 lines (43 loc) · 1.31 KB
/
Copy pathContainerDNSConfig.java
File metadata and controls
53 lines (43 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* Specification for DNS related configurations in resolver configuration file (`resolv.conf`).
*
* @since {@link RemoteApiVersion#VERSION_1_25}
*/
@EqualsAndHashCode
@ToString
public class ContainerDNSConfig extends DockerObject implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("Nameservers")
private List<String> nameservers;
@JsonProperty("Search")
private List<String> search;
@JsonProperty("Options")
private List<String> options;
public List<String> getNameservers() {
return nameservers;
}
public ContainerDNSConfig withNameservers(List<String> nameservers) {
this.nameservers = nameservers;
return this;
}
public List<String> getSearch() {
return search;
}
public ContainerDNSConfig withSearch(List<String> search) {
this.search = search;
return this;
}
public List<String> getOptions() {
return options;
}
public ContainerDNSConfig withOptions(List<String> options) {
this.options = options;
return this;
}
}