/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudFront { namespace Model { /** */ class UpdateCachePolicy2020_05_31Request : public CloudFrontRequest { public: AWS_CLOUDFRONT_API UpdateCachePolicy2020_05_31Request(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateCachePolicy"; } AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A cache policy configuration.

*/ inline const CachePolicyConfig& GetCachePolicyConfig() const{ return m_cachePolicyConfig; } /** *

A cache policy configuration.

*/ inline bool CachePolicyConfigHasBeenSet() const { return m_cachePolicyConfigHasBeenSet; } /** *

A cache policy configuration.

*/ inline void SetCachePolicyConfig(const CachePolicyConfig& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = value; } /** *

A cache policy configuration.

*/ inline void SetCachePolicyConfig(CachePolicyConfig&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::move(value); } /** *

A cache policy configuration.

*/ inline UpdateCachePolicy2020_05_31Request& WithCachePolicyConfig(const CachePolicyConfig& value) { SetCachePolicyConfig(value); return *this;} /** *

A cache policy configuration.

*/ inline UpdateCachePolicy2020_05_31Request& WithCachePolicyConfig(CachePolicyConfig&& value) { SetCachePolicyConfig(std::move(value)); return *this;} /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the cache policy that you are updating. The * identifier is returned in a cache behavior's CachePolicyId field in * the response to GetDistributionConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithId(const char* value) { SetId(value); return *this;} /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline const Aws::String& GetIfMatch() const{ return m_ifMatch; } /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; } /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; } /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); } /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); } /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;} /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;} /** *

The version of the cache policy that you are updating. The version is * returned in the cache policy's ETag field in the response to * GetCachePolicyConfig.

*/ inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} private: CachePolicyConfig m_cachePolicyConfig; bool m_cachePolicyConfigHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_ifMatch; bool m_ifMatchHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws