AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCachePolicyConfig(const CachePolicyConfig& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = value; }
45 inline void SetCachePolicyConfig(CachePolicyConfig&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::move(value); }
49
51
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline UpdateCachePolicy2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline UpdateCachePolicy2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline UpdateCachePolicy2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
65
67
72 inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
73 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
74 inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
75 inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
76 inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
77 inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
78 inline UpdateCachePolicy2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
79 inline UpdateCachePolicy2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
81 private:
82
83 CachePolicyConfig m_cachePolicyConfig;
84 bool m_cachePolicyConfigHasBeenSet = false;
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_ifMatch;
90 bool m_ifMatchHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudFront
95} // namespace Aws
UpdateCachePolicy2020_05_31Request & WithCachePolicyConfig(CachePolicyConfig &&value)
UpdateCachePolicy2020_05_31Request & WithIfMatch(Aws::String &&value)
UpdateCachePolicy2020_05_31Request & WithId(const Aws::String &value)
UpdateCachePolicy2020_05_31Request & WithId(Aws::String &&value)
UpdateCachePolicy2020_05_31Request & WithIfMatch(const Aws::String &value)
UpdateCachePolicy2020_05_31Request & WithIfMatch(const char *value)
UpdateCachePolicy2020_05_31Request & WithId(const char *value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCachePolicy2020_05_31Request & WithCachePolicyConfig(const CachePolicyConfig &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String