forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfoRegistryConfig.java
More file actions
162 lines (138 loc) · 3.47 KB
/
Copy pathInfoRegistryConfig.java
File metadata and controls
162 lines (138 loc) · 3.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
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;
import java.util.Map;
/**
* @since ~{@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_20}
*/
@EqualsAndHashCode
@ToString
public final class InfoRegistryConfig implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("IndexConfigs")
private Map<String, IndexConfig> indexConfigs;
@JsonProperty("InsecureRegistryCIDRs")
private List<String> insecureRegistryCIDRs;
/**
* //FIXME unknown field
*/
@JsonProperty("Mirrors")
private Object mirrors;
/**
* @see #indexConfigs
*/
@CheckForNull
public Map<String, IndexConfig> getIndexConfigs() {
return indexConfigs;
}
/**
* @see #indexConfigs
*/
public InfoRegistryConfig withIndexConfigs(Map<String, IndexConfig> indexConfigs) {
this.indexConfigs = indexConfigs;
return this;
}
/**
* @see #insecureRegistryCIDRs
*/
@CheckForNull
public List<String> getInsecureRegistryCIDRs() {
return insecureRegistryCIDRs;
}
/**
* @see #insecureRegistryCIDRs
*/
public InfoRegistryConfig withInsecureRegistryCIDRs(List<String> insecureRegistryCIDRs) {
this.insecureRegistryCIDRs = insecureRegistryCIDRs;
return this;
}
/**
* @see #mirrors
*/
@CheckForNull
public Object getMirrors() {
return mirrors;
}
/**
* @see #mirrors
*/
public InfoRegistryConfig withMirrors(Object mirrors) {
this.mirrors = mirrors;
return this;
}
/**
* @since ~{@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_20}
*/
@EqualsAndHashCode
@ToString
public static final class IndexConfig {
@JsonProperty("Mirrors")
private List<String> mirrors;
@JsonProperty("Name")
private String name;
@JsonProperty("Official")
private Boolean official;
@JsonProperty("Secure")
private Boolean secure;
/**
* @see #mirrors
*/
@CheckForNull
public List<String> getMirrors() {
return mirrors;
}
/**
* @see #mirrors
*/
public IndexConfig withMirrors(List<String> mirrors) {
this.mirrors = mirrors;
return this;
}
/**
* @see #name
*/
@CheckForNull
public String getName() {
return name;
}
/**
* @see #name
*/
public IndexConfig withName(String name) {
this.name = name;
return this;
}
/**
* @see #official
*/
@CheckForNull
public Boolean getOfficial() {
return official;
}
/**
* @see #official
*/
public IndexConfig withOfficial(Boolean official) {
this.official = official;
return this;
}
/**
* @see #secure
*/
@CheckForNull
public Boolean getSecure() {
return secure;
}
/**
* @see #secure
*/
public IndexConfig withSecure(Boolean secure) {
this.secure = secure;
return this;
}
}
}