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 com.fasterxml.jackson.annotation.JsonProperty;
20  
21  /**
22   *
23   */
24  public class PortDefinition {
25  
26      @JsonProperty("IP")
27      private String ip;
28      
29      @JsonProperty("PrivatePort")
30      private Integer privatePort;
31  
32      @JsonProperty("PublicPort")
33      private Integer publicPort;
34  
35      @JsonProperty("Type")
36      private String type;
37  
38      public String getIp() {
39          return ip;
40      }
41  
42      public void setIp(String ip) {
43          this.ip = ip;
44      }
45  
46      public Integer getPrivatePort() {
47          return privatePort;
48      }
49  
50      public void setPrivatePort(Integer privatePort) {
51          this.privatePort = privatePort;
52      }
53  
54      public Integer getPublicPort() {
55          return publicPort;
56      }
57  
58      public void setPublicPort(Integer publicPort) {
59          this.publicPort = publicPort;
60      }
61  
62      public String getType() {
63          return type;
64      }
65  
66      public void setType(String type) {
67          this.type = type;
68      }
69  }