Class 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 Detail

      • MaxAgePolicy

        public MaxAgePolicy()
        No args constructor for use in serialization
      • MaxAgePolicy

        public MaxAgePolicy​(Integer largestMaxAge,
                            Integer smallestMaxAge)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)