| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.karaf.docker; |
| |
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| import com.fasterxml.jackson.annotation.JsonProperty; |
| |
| import java.util.List; |
| import java.util.Map; |
| |
| @JsonIgnoreProperties(ignoreUnknown = false) |
| public class HostConfig { |
| |
| @JsonProperty("Binds") |
| private String[] binds; |
| |
| @JsonProperty("Links") |
| private String[] links; |
| |
| @JsonProperty("Memory") |
| private long memory; |
| |
| @JsonProperty("MemorySwap") |
| private long memorySwap; |
| |
| @JsonProperty("LxcConf") |
| private String[] lxcConf; |
| |
| @JsonProperty("PortBindings") |
| private Map<String, List<HostPortBinding>> portBindings; |
| |
| @JsonProperty("PublishAllPorts") |
| private boolean publishAllPorts; |
| |
| @JsonProperty("Privileged") |
| private boolean privileged; |
| |
| @JsonProperty("Dns") |
| private String[] dns; |
| |
| @JsonProperty("VolumesFrom") |
| private String[] volumesFrom; |
| |
| @JsonProperty("NetworkMode") |
| private String networkMode; |
| |
| public String[] getBinds() { |
| return binds; |
| } |
| |
| public void setBinds(String[] binds) { |
| this.binds = binds; |
| } |
| |
| public String[] getLinks() { |
| return links; |
| } |
| |
| public void setLinks(String[] links) { |
| this.links = links; |
| } |
| |
| public long getMemory() { |
| return memory; |
| } |
| |
| public void setMemory(long memory) { |
| this.memory = memory; |
| } |
| |
| public long getMemorySwap() { |
| return memorySwap; |
| } |
| |
| public void setMemorySwap(long memorySwap) { |
| this.memorySwap = memorySwap; |
| } |
| |
| public String[] getLxcConf() { |
| return lxcConf; |
| } |
| |
| public void setLxcConf(String[] lxcConf) { |
| this.lxcConf = lxcConf; |
| } |
| |
| public Map<String, List<HostPortBinding>> getPortBindings() { |
| return portBindings; |
| } |
| |
| public void setPortBindings(Map<String, List<HostPortBinding>> portBindings) { |
| this.portBindings = portBindings; |
| } |
| |
| public boolean isPublishAllPorts() { |
| return publishAllPorts; |
| } |
| |
| public void setPublishAllPorts(boolean publishAllPorts) { |
| this.publishAllPorts = publishAllPorts; |
| } |
| |
| public boolean isPrivileged() { |
| return privileged; |
| } |
| |
| public void setPrivileged(boolean privileged) { |
| this.privileged = privileged; |
| } |
| |
| public String[] getDns() { |
| return dns; |
| } |
| |
| public void setDns(String[] dns) { |
| this.dns = dns; |
| } |
| |
| public String[] getVolumesFrom() { |
| return volumesFrom; |
| } |
| |
| public void setVolumesFrom(String[] volumesFrom) { |
| this.volumesFrom = volumesFrom; |
| } |
| |
| public String getNetworkMode() { |
| return networkMode; |
| } |
| |
| public void setNetworkMode(String networkMode) { |
| this.networkMode = networkMode; |
| } |
| |
| } |