001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache license, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the license for the specific language governing permissions and 015 * limitations under the license. 016 */ 017package org.apache.logging.log4j.docker.model; 018 019import java.util.Map; 020 021import com.fasterxml.jackson.annotation.JsonProperty; 022 023/** 024 * 025 */ 026public class NetworkSettings { 027 028 @JsonProperty("Networks") 029 private Map<String, Network> networks; 030 031 @JsonProperty("Bridge") 032 private String bridge; 033 034 @JsonProperty("SandboxID") 035 private String sandboxId; 036 037 @JsonProperty("HairpinMode") 038 private boolean hairpinMode; 039 040 @JsonProperty("LinkLocalIPv6Address") 041 private String linkLocalIPv6Address; 042 043 @JsonProperty("LinkLocalIPv6PrefixLen") 044 private int linkLocalIPv6PrefixLen; 045 046 @JsonProperty("Ports") 047 private Map<String, String> ports; 048 049 @JsonProperty("SandboxKey") 050 private String sandboxKey; 051 052 @JsonProperty("SecondaryIPAddresses") 053 private String secondaryIPaddresses; 054 055 @JsonProperty("EndpointID") 056 private String endpointId; 057 058 @JsonProperty("Gateway") 059 private String gateway; 060 061 @JsonProperty("GlobalIPv6Address") 062 private String globalIPv6Address; 063 064 @JsonProperty("GlobalIPv6PrefixLen") 065 private int globalIPv6PrefixLen; 066 067 @JsonProperty("IPAddress") 068 private String ipAddress; 069 070 @JsonProperty("IPPrefixLen") 071 private int ipPrefixLen; 072 073 @JsonProperty("IPv6Gateway") 074 private String ipv6Gateway; 075 076 @JsonProperty("MacAddress") 077 private String macAddress; 078 079 080 public Map<String, Network> getNetworks() { 081 return networks; 082 } 083 084 public void setNetworks(Map<String, Network> networks) { 085 this.networks = networks; 086 } 087 088 public String getBridge() { 089 return bridge; 090 } 091 092 public void setBridge(String bridge) { 093 this.bridge = bridge; 094 } 095 096 public String getSandboxId() { 097 return sandboxId; 098 } 099 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}