/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A response headers policy. A response headers policy contains
* information about a set of HTTP response headers. After you create a
* response headers policy, you can use its ID to attach it to one or more cache
* behaviors in a CloudFront distribution. When it's attached to a cache behavior,
* the response headers policy affects the HTTP headers that CloudFront includes in
* HTTP responses to requests that match the cache behavior. CloudFront adds or
* removes response headers according to the configuration of the response headers
* policy. For more information, see Adding
* or removing HTTP headers in CloudFront responses in the Amazon CloudFront
* Developer Guide.See Also:
AWS
* API Reference
The identifier for the response headers policy.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier for the response headers policy.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier for the response headers policy.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier for the response headers policy.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier for the response headers policy.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier for the response headers policy.
*/ inline ResponseHeadersPolicy& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier for the response headers policy.
*/ inline ResponseHeadersPolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier for the response headers policy.
*/ inline ResponseHeadersPolicy& WithId(const char* value) { SetId(value); return *this;} /** *The date and time when the response headers policy was last modified.
*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *The date and time when the response headers policy was last modified.
*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *The date and time when the response headers policy was last modified.
*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *The date and time when the response headers policy was last modified.
*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *The date and time when the response headers policy was last modified.
*/ inline ResponseHeadersPolicy& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *The date and time when the response headers policy was last modified.
*/ inline ResponseHeadersPolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *A response headers policy configuration.
*/ inline const ResponseHeadersPolicyConfig& GetResponseHeadersPolicyConfig() const{ return m_responseHeadersPolicyConfig; } /** *A response headers policy configuration.
*/ inline bool ResponseHeadersPolicyConfigHasBeenSet() const { return m_responseHeadersPolicyConfigHasBeenSet; } /** *A response headers policy configuration.
*/ inline void SetResponseHeadersPolicyConfig(const ResponseHeadersPolicyConfig& value) { m_responseHeadersPolicyConfigHasBeenSet = true; m_responseHeadersPolicyConfig = value; } /** *A response headers policy configuration.
*/ inline void SetResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig&& value) { m_responseHeadersPolicyConfigHasBeenSet = true; m_responseHeadersPolicyConfig = std::move(value); } /** *A response headers policy configuration.
*/ inline ResponseHeadersPolicy& WithResponseHeadersPolicyConfig(const ResponseHeadersPolicyConfig& value) { SetResponseHeadersPolicyConfig(value); return *this;} /** *A response headers policy configuration.
*/ inline ResponseHeadersPolicy& WithResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig&& value) { SetResponseHeadersPolicyConfig(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; ResponseHeadersPolicyConfig m_responseHeadersPolicyConfig; bool m_responseHeadersPolicyConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws