Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.nirima.docker.client.model;
 

Author(s):
Konstantin Pelykh (kpelykh@gmail.com)
@JsonIgnoreProperties(ignoreUnknown=true)
public class Container {
    @JsonProperty("Id")
    private String id;
    @JsonProperty("Command")
    private String command;
    @JsonProperty("Image")
    private String image;
    @JsonProperty("Created")
    private long created;
    @JsonProperty("Status")
    private String status;
    /* Example:
       "Ports": {
            "22/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "8022"
                }
            ]
        }
     */
    @JsonProperty("Ports")
    private Ports ports;
    @JsonProperty("SizeRw")
    private int size;
    @JsonProperty("SizeRootFs")
    private int sizeRootFs;
    public String getId() {
        return ;
    }
    public String getCommand() {
        return ;
    }
    public String getImage() {
        return ;
    }
    public long getCreated() {
        return ;
    }
    public String getStatus() {
        return ;
    }
    public Ports getPorts() {
        return ;
    }
    public int getSize() {
        return ;
    }
    public int getSizeRootFs() {
        return ;
    }
    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("id")
                .add("command")
                .add("image")
                .add("created")
                .add("status")
                .add("ports")
                .add("size")
                .add("sizeRootFs")
                .toString();
    }
New to GrepCode? Check out our FAQ X