View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements. See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache license, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License. You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the license for the specific language governing permissions and
15   * limitations under the license.
16   */
17  package org.apache.logging.log4j.docker.model;
18  
19  import java.util.Map;
20  
21  import com.fasterxml.jackson.annotation.JsonProperty;
22  
23  /**
24   *
25   */
26  public class NetworkSettings {
27  
28      @JsonProperty("Networks")
29      private Map<String, Network> networks;
30  
31      @JsonProperty("Bridge")
32      private String bridge;
33  
34      @JsonProperty("SandboxID")
35      private String sandboxId;
36  
37      @JsonProperty("HairpinMode")
38      private boolean hairpinMode;
39  
40      @JsonProperty("LinkLocalIPv6Address")
41      private String linkLocalIPv6Address;
42  
43      @JsonProperty("LinkLocalIPv6PrefixLen")
44      private int linkLocalIPv6PrefixLen;
45  
46      @JsonProperty("Ports")
47      private Map<String, String> ports;
48  
49      @JsonProperty("SandboxKey")
50      private String sandboxKey;
51  
52      @JsonProperty("SecondaryIPAddresses")
53      private String secondaryIPaddresses;
54  
55      @JsonProperty("EndpointID")
56      private String endpointId;
57  
58      @JsonProperty("Gateway")
59      private String gateway;
60  
61      @JsonProperty("GlobalIPv6Address")
62      private String globalIPv6Address;
63  
64      @JsonProperty("GlobalIPv6PrefixLen")
65      private int globalIPv6PrefixLen;
66  
67      @JsonProperty("IPAddress")
68      private String ipAddress;
69  
70      @JsonProperty("IPPrefixLen")
71      private int ipPrefixLen;
72  
73      @JsonProperty("IPv6Gateway")
74      private String ipv6Gateway;
75  
76      @JsonProperty("MacAddress")
77      private String macAddress;
78  
79  
80      public Map<String, Network> getNetworks() {
81          return networks;
82      }
83  
84      public void setNetworks(Map<String, Network> networks) {
85          this.networks = networks;
86      }
87  
88      public String getBridge() {
89          return bridge;
90      }
91  
92      public void setBridge(String bridge) {
93          this.bridge = bridge;
94      }
95  
96      public String getSandboxId() {
97          return sandboxId;
98      }
99  
100     public void setSandboxId(String sandboxId) {
101         this.sandboxId = sandboxId;
102     }
103 
104     public boolean isHairpinMode() {
105         return hairpinMode;
106     }
107 
108     public void setHairpinMode(boolean hairpinMode) {
109         this.hairpinMode = hairpinMode;
110     }
111 
112     public String getLinkLocalIPv6Address() {
113         return linkLocalIPv6Address;
114     }
115 
116     public void setLinkLocalIPv6Address(String linkLocalIPv6Address) {
117         this.linkLocalIPv6Address = linkLocalIPv6Address;
118     }
119 
120     public int getLinkLocalIPv6PrefixLen() {
121         return linkLocalIPv6PrefixLen;
122     }
123 
124     public void setLinkLocalIPv6PrefixLen(int linkLocalIPv6PrefixLen) {
125         this.linkLocalIPv6PrefixLen = linkLocalIPv6PrefixLen;
126     }
127 
128     public Map<String, String> getPorts() {
129         return ports;
130     }
131 
132     public void setPorts(Map<String, String> ports) {
133         this.ports = ports;
134     }
135 
136     public String getSandboxKey() {
137         return sandboxKey;
138     }
139 
140     public void setSandboxKey(String sandboxKey) {
141         this.sandboxKey = sandboxKey;
142     }
143 
144     public String getSecondaryIPaddresses() {
145         return secondaryIPaddresses;
146     }
147 
148     public void setSecondaryIPaddresses(String secondaryIPaddresses) {
149         this.secondaryIPaddresses = secondaryIPaddresses;
150     }
151 
152     public String getEndpointId() {
153         return endpointId;
154     }
155 
156     public void setEndpointId(String endpointId) {
157         this.endpointId = endpointId;
158     }
159 
160     public String getGateway() {
161         return gateway;
162     }
163 
164     public void setGateway(String gateway) {
165         this.gateway = gateway;
166     }
167 
168     public String getGlobalIPv6Address() {
169         return globalIPv6Address;
170     }
171 
172     public void setGlobalIPv6Address(String globalIPv6Address) {
173         this.globalIPv6Address = globalIPv6Address;
174     }
175 
176     public int getGlobalIPv6PrefixLen() {
177         return globalIPv6PrefixLen;
178     }
179 
180     public void setGlobalIPv6PrefixLen(int globalIPv6PrefixLen) {
181         this.globalIPv6PrefixLen = globalIPv6PrefixLen;
182     }
183 
184     public String getIpAddress() {
185         return ipAddress;
186     }
187 
188     public void setIpAddress(String ipAddress) {
189         this.ipAddress = ipAddress;
190     }
191 
192     public int getIpPrefixLen() {
193         return ipPrefixLen;
194     }
195 
196     public void setIpPrefixLen(int ipPrefixLen) {
197         this.ipPrefixLen = ipPrefixLen;
198     }
199 
200     public String getIpv6Gateway() {
201         return ipv6Gateway;
202     }
203 
204     public void setIpv6Gateway(String ipv6Gateway) {
205         this.ipv6Gateway = ipv6Gateway;
206     }
207 
208     public String getMacAddress() {
209         return macAddress;
210     }
211 
212     public void setMacAddress(String macAddress) {
213         this.macAddress = macAddress;
214     }
215 }