Class HostPortRange
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.policy.v1beta1.HostPortRange
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HostPortRangeBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HostPortRange extends Object implements io.fabric8.kubernetes.api.builder.Editable<HostPortRangeBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostPortRange()No args constructor for use in serializationHostPortRange(Integer max, Integer min)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPortRangeBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetMax()max is the end of the range, inclusive.IntegergetMin()min is the start of the range, inclusive.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMax(Integer max)max is the end of the range, inclusive.voidsetMin(Integer min)min is the start of the range, inclusive.HostPortRangeBuildertoBuilder()
-
-
-
Method Detail
-
getMax
public Integer getMax()
max is the end of the range, inclusive.
-
setMax
public void setMax(Integer max)
max is the end of the range, inclusive.
-
getMin
public Integer getMin()
min is the start of the range, inclusive.
-
setMin
public void setMin(Integer min)
min is the start of the range, inclusive.
-
edit
public HostPortRangeBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<HostPortRangeBuilder>
-
toBuilder
public HostPortRangeBuilder toBuilder()
-
-