mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 02:59:46 +00:00
Fixes missing nullable annotations
This commit is contained in:
parent
c627454926
commit
03c900fba6
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -58,6 +59,7 @@ public class AddressPair {
|
||||
/**
|
||||
* @return the macAddress of the AddressPair
|
||||
*/
|
||||
@Nullable
|
||||
public String getMacAddress() {
|
||||
return macAddress;
|
||||
}
|
||||
@ -65,6 +67,7 @@ public class AddressPair {
|
||||
/**
|
||||
* @return the ipAddress of the AddressPair
|
||||
*/
|
||||
@Nullable
|
||||
public String getIpAddress() {
|
||||
return ipAddress;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import java.beans.ConstructorProperties;
|
||||
|
||||
@ -43,6 +44,7 @@ public class AllocationPool {
|
||||
/**
|
||||
* @return the start of the AllocationPool
|
||||
*/
|
||||
@Nullable
|
||||
public String getStart() {
|
||||
return start;
|
||||
}
|
||||
@ -50,6 +52,7 @@ public class AllocationPool {
|
||||
/**
|
||||
* @return the end of the AllocationPool
|
||||
*/
|
||||
@Nullable
|
||||
public String getEnd() {
|
||||
return end;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -41,6 +42,7 @@ public class ExternalGatewayInfo {
|
||||
/**
|
||||
* @return the networkId of the ExternalGatewayInfo
|
||||
*/
|
||||
@Nullable
|
||||
public String getNetworkId() {
|
||||
return networkId;
|
||||
}
|
||||
@ -48,6 +50,7 @@ public class ExternalGatewayInfo {
|
||||
/**
|
||||
* @return the enableSnat status of the ExternalGatewayInfo
|
||||
*/
|
||||
@Nullable
|
||||
public Boolean getEnableSnat() {
|
||||
return enableSnat;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -50,6 +51,7 @@ public class ExtraDhcpOption {
|
||||
/**
|
||||
* @return the id of the ExtraDhcpOption
|
||||
*/
|
||||
@Nullable
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
@ -57,6 +59,7 @@ public class ExtraDhcpOption {
|
||||
/**
|
||||
* @return the optionName of the ExtraDhcpOption
|
||||
*/
|
||||
@Nullable
|
||||
public String getOptionName() {
|
||||
return optionName;
|
||||
}
|
||||
@ -64,6 +67,7 @@ public class ExtraDhcpOption {
|
||||
/**
|
||||
* @return the optionValue of the ExtraDhcpOption
|
||||
*/
|
||||
@Nullable
|
||||
public String getOptionValue() {
|
||||
return optionValue;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.MoreObjects.ToStringHelper;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -44,6 +45,7 @@ public class HostRoute {
|
||||
/**
|
||||
* @return the destination CIDR for this route.
|
||||
*/
|
||||
@Nullable
|
||||
public String getDestinationCidr() {
|
||||
return destinationCidr;
|
||||
}
|
||||
@ -51,6 +53,7 @@ public class HostRoute {
|
||||
/**
|
||||
* @return the IP of the next hop to forward traffic to.
|
||||
*/
|
||||
@Nullable
|
||||
public String getNextHop() {
|
||||
return nextHop;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -41,6 +42,7 @@ public class IP {
|
||||
/**
|
||||
* @return the ipAddress of the IP
|
||||
*/
|
||||
@Nullable
|
||||
public String getIpAddress() {
|
||||
return ipAddress;
|
||||
}
|
||||
@ -48,6 +50,7 @@ public class IP {
|
||||
/**
|
||||
* @return the subnetId of the IP
|
||||
*/
|
||||
@Nullable
|
||||
public String getSubnetId() {
|
||||
return subnetId;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -37,10 +38,10 @@ public class NetworkSegment {
|
||||
@Named("provider:physical_network")
|
||||
protected final String physicalNetwork;
|
||||
@Named("provider:segmentation_id")
|
||||
protected final int segmentationId;
|
||||
protected final Integer segmentationId;
|
||||
|
||||
@ConstructorProperties({"provider:network_type", "provider:physical_network", "provider:segmentation_id"})
|
||||
protected NetworkSegment(NetworkType networkType, String physicalNetwork, int segmentationId) {
|
||||
protected NetworkSegment(NetworkType networkType, String physicalNetwork, Integer segmentationId) {
|
||||
this.networkType = networkType;
|
||||
this.physicalNetwork = physicalNetwork;
|
||||
this.segmentationId = segmentationId;
|
||||
@ -49,6 +50,7 @@ public class NetworkSegment {
|
||||
/**
|
||||
* @return the networkType of the NetworkSegment
|
||||
*/
|
||||
@Nullable
|
||||
public NetworkType getNetworkType() {
|
||||
return networkType;
|
||||
}
|
||||
@ -56,6 +58,7 @@ public class NetworkSegment {
|
||||
/**
|
||||
* @return the physicalNetwork of the NetworkSegment
|
||||
*/
|
||||
@Nullable
|
||||
public String getPhysicalNetwork() {
|
||||
return physicalNetwork;
|
||||
}
|
||||
@ -63,7 +66,8 @@ public class NetworkSegment {
|
||||
/**
|
||||
* @return the segmentationId of the NetworkSegment
|
||||
*/
|
||||
public int getSegmentationId() {
|
||||
@Nullable
|
||||
public Integer getSegmentationId() {
|
||||
return segmentationId;
|
||||
}
|
||||
|
||||
@ -111,7 +115,7 @@ public class NetworkSegment {
|
||||
public static class Builder {
|
||||
protected NetworkType networkType;
|
||||
protected String physicalNetwork;
|
||||
protected int segmentationId;
|
||||
protected Integer segmentationId;
|
||||
|
||||
/**
|
||||
* Provide the networkType to the NetworkSegment's Builder.
|
||||
|
@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
import org.jclouds.javax.annotation.Nullable;
|
||||
|
||||
import javax.inject.Named;
|
||||
import java.beans.ConstructorProperties;
|
||||
@ -45,6 +46,7 @@ public class RouterInterface {
|
||||
/**
|
||||
* @return the subnetId of the RouterInterface
|
||||
*/
|
||||
@Nullable
|
||||
public String getSubnetId() {
|
||||
return subnetId;
|
||||
}
|
||||
@ -52,6 +54,7 @@ public class RouterInterface {
|
||||
/**
|
||||
* @return the portId of the RouterInterface
|
||||
*/
|
||||
@Nullable
|
||||
public String getPortId() {
|
||||
return portId;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user