Constructor and Description |
---|
Builder(java.lang.String address)
Constructor with parameters for the required properties of
Ipv4Spec . |
Modifier and Type | Method and Description |
---|---|
Ipv4Spec |
build() |
Ipv4Spec.Builder |
setPrefix(java.lang.Long prefix)
The CIDR prefix for the interface.
|
Ipv4Spec.Builder |
setSubnetMask(java.lang.String subnetMask)
The subnet mask for the interface.
|
public Builder(java.lang.String address)
Ipv4Spec
.public Ipv4Spec.Builder setSubnetMask(java.lang.String subnetMask)
null
and the getPrefix()
property is null
, then an
error will be reported.null
and the getPrefix()
property is set, then the getPrefix()
property will be used to create a
subnet mask whose first prefix bits are 1 and the remaining bits 0.getSubnetMask()
property and the getPrefix()
property are
set and they do not represent the same value, then an error will be reported.subnetMask
- New value for the property.public Ipv4Spec.Builder setPrefix(java.lang.Long prefix)
null
and the getSubnetMask()
property is null
, this
an error will be reported.null
and the getSubnetMask()
property is set, then the getSubnetMask()
property will be used.getSubnetMask()
property and the getPrefix()
property
are set and they do not represent the same value, then an error will be
reported.prefix
- New value for the property.public Ipv4Spec build()