Class ResponseHeadersPolicyStrictTransportSecurity

    • Method Detail

      • override

        public final Boolean override()

        A Boolean that determines whether CloudFront overrides the Strict-Transport-Security HTTP response header received from the origin with the one specified in this response headers policy.

        Returns:
        A Boolean that determines whether CloudFront overrides the Strict-Transport-Security HTTP response header received from the origin with the one specified in this response headers policy.
      • includeSubdomains

        public final Boolean includeSubdomains()

        A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.

        Returns:
        A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
      • preload

        public final Boolean preload()

        A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.

        Returns:
        A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
      • accessControlMaxAgeSec

        public final Integer accessControlMaxAgeSec()

        A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.

        Returns:
        A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)