> + private final String gateway;
> + @SerializedName("Bridge")
> + private final String bridge;
> + @SerializedName("PortMapping")
> + private final String portMapping;
> + @SerializedName("Ports")
> + private final Map<String, List<Map<String, String>>> ports;
> +
> + @ConstructorProperties({ "IpAddress", "IpPrefixLen", "Gateway", "Bridge",
> "Ports" })
> + public NetworkSettings(String ipAddress, int ipPrefixLen, String gateway,
> String bridge, String portMapping,
> + Map<String, List<Map<String, String>>> ports) {
> + this.ipAddress = ipAddress;
> + this.ipPrefixLen = ipPrefixLen;
> + this.gateway = gateway;
> + this.bridge = bridge;
> + this.portMapping = portMapping;
Add null checks for all properties that are not nullable.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12937553