Class MaxAgePolicy
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.MaxAgePolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MaxAgePolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MaxAgePolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<MaxAgePolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MaxAgePolicy contains a numeric range for specifying a compliant HSTS max-age for the enclosing RequiredHSTSPolicy- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxAgePolicy()No args constructor for use in serializationMaxAgePolicy(Integer largestMaxAge, Integer smallestMaxAge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxAgePolicyBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetLargestMaxAge()The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age This value can be left unspecified, in which case no upper limit is enforced.IntegergetSmallestMaxAge()The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age Setting max-age=0 allows the deletion of an existing HSTS header from a host.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLargestMaxAge(Integer largestMaxAge)The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age This value can be left unspecified, in which case no upper limit is enforced.voidsetSmallestMaxAge(Integer smallestMaxAge)The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age Setting max-age=0 allows the deletion of an existing HSTS header from a host.MaxAgePolicyBuildertoBuilder()
-
-
-
Method Detail
-
getLargestMaxAge
public Integer getLargestMaxAge()
The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age This value can be left unspecified, in which case no upper limit is enforced.
-
setLargestMaxAge
public void setLargestMaxAge(Integer largestMaxAge)
The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age This value can be left unspecified, in which case no upper limit is enforced.
-
getSmallestMaxAge
public Integer getSmallestMaxAge()
The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age Setting max-age=0 allows the deletion of an existing HSTS header from a host. This is a necessary tool for administrators to quickly correct mistakes. This value can be left unspecified, in which case no lower limit is enforced.
-
setSmallestMaxAge
public void setSmallestMaxAge(Integer smallestMaxAge)
The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age Setting max-age=0 allows the deletion of an existing HSTS header from a host. This is a necessary tool for administrators to quickly correct mistakes. This value can be left unspecified, in which case no lower limit is enforced.
-
edit
public MaxAgePolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MaxAgePolicyBuilder>
-
toBuilder
public MaxAgePolicyBuilder toBuilder()
-
-