AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateCachePolicy2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/CloudFrontRequest.h>
9#include <aws/cloudfront/model/CachePolicyConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudFront
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDFRONT_API UpdateCachePolicy2020_05_31Request() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateCachePolicy"; }
32
33 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const CachePolicyConfig& GetCachePolicyConfig() const { return m_cachePolicyConfig; }
43 inline bool CachePolicyConfigHasBeenSet() const { return m_cachePolicyConfigHasBeenSet; }
44 template<typename CachePolicyConfigT = CachePolicyConfig>
45 void SetCachePolicyConfig(CachePolicyConfigT&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::forward<CachePolicyConfigT>(value); }
46 template<typename CachePolicyConfigT = CachePolicyConfig>
47 UpdateCachePolicy2020_05_31Request& WithCachePolicyConfig(CachePolicyConfigT&& value) { SetCachePolicyConfig(std::forward<CachePolicyConfigT>(value)); return *this;}
49
51
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template<typename IdT = Aws::String>
59 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
60 template<typename IdT = Aws::String>
61 UpdateCachePolicy2020_05_31Request& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
63
65
70 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
71 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
72 template<typename IfMatchT = Aws::String>
73 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
74 template<typename IfMatchT = Aws::String>
75 UpdateCachePolicy2020_05_31Request& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
77 private:
78
79 CachePolicyConfig m_cachePolicyConfig;
80 bool m_cachePolicyConfigHasBeenSet = false;
81
82 Aws::String m_id;
83 bool m_idHasBeenSet = false;
84
85 Aws::String m_ifMatch;
86 bool m_ifMatchHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudFront
91} // namespace Aws
UpdateCachePolicy2020_05_31Request & WithCachePolicyConfig(CachePolicyConfigT &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCachePolicy2020_05_31Request & WithIfMatch(IfMatchT &&value)
AWS_CLOUDFRONT_API UpdateCachePolicy2020_05_31Request()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String