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.List;
020import java.util.Map;
021
022import com.fasterxml.jackson.annotation.JsonProperty;
023
024/**
025 * Definition of a Docker Container
026 */
027public class Container {
028    @JsonProperty("Id")
029    private String id;
030    
031    @JsonProperty("Names")
032    private List<String> names;
033
034    @JsonProperty("Path")
035    private String path;
036
037    @JsonProperty("Args")
038    private String[] args;
039
040    @JsonProperty("Image")
041    private String image;
042
043    @JsonProperty("ImageID")
044    private String imageId;
045
046    @JsonProperty("Command")
047    private String command;
048
049    @JsonProperty("Created")
050    private Long created;
051
052    @JsonProperty("Ports")
053    private List<PortDefinition> ports;
054
055    @JsonProperty("Labels")
056    private Map<String, String> labels;
057
058    @JsonProperty("State")
059    private String state;
060
061    @JsonProperty("Status")
062    private String status;
063
064    @JsonProperty("HostConfig")
065    private HostConfig hostConfig;
066
067    @JsonProperty("NetworkSettings")
068    private NetworkSettings networkSettings;
069
070    @JsonProperty("Mounts")
071    private List<Mount> mounts;
072
073    public String getId() {
074        return id;
075    }
076
077    public void setId(String id) {
078        this.id = id;
079    }
080
081    public List<String> getNames() {
082        return names;
083    }
084
085    public void setNames(List<String> names) {
086        this.names = names;
087    }
088
089    public String getImage() {
090        return image;
091    }
092
093    public void setImage(String image) {
094        this.image = image;
095    }
096
097    public String getImageId() {
098        return imageId;
099    }
100
101    public void setImageId(String imageId) {
102        this.imageId = imageId;
103    }
104
105    public String getCommand() {
106        return command;
107    }
108
109    public void setCommand(String command) {
110        this.command = command;
111    }
112
113    public Long getCreated() {
114        return created;
115    }
116
117    public void setCreated(Long created) {
118        this.created = created;
119    }
120
121    public List<PortDefinition> getPorts() {
122        return ports;
123    }
124
125    public void setPorts(List<PortDefinition> ports) {
126        this.ports = ports;
127    }
128
129    public Map<String, String> getLabels() {
130        return labels;
131    }
132
133    public void setLabels(Map<String, String> labels) {
134        this.labels = labels;
135    }
136
137    public String getState() {
138        return state;
139    }
140
141    public void setState(String state) {
142        this.state = state;
143    }
144
145    public String getStatus() {
146        return status;
147    }
148
149    public void setStatus(String status) {
150        this.status = status;
151    }
152
153    public HostConfig getHostConfig() {
154        return hostConfig;
155    }
156
157    public void setHostConfig(HostConfig hostConfig) {
158        this.hostConfig = hostConfig;
159    }
160
161    public NetworkSettings getNetworkSettings() {
162        return networkSettings;
163    }
164
165    public void setNetworkSettings(NetworkSettings networkSettings) {
166        this.networkSettings = networkSettings;
167    }
168
169    public List<Mount> getMounts() {
170        return mounts;
171    }
172
173    public void setMounts(List<Mount> mounts) {
174        this.mounts = mounts;
175    }
176}