AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
UpdateDistribution2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFrontRequest.h>
8#include <aws/cloudfront/CloudFront_EXPORTS.h>
9#include <aws/cloudfront/model/DistributionConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudFront {
16namespace Model {
17
24 public:
25 AWS_CLOUDFRONT_API UpdateDistribution2020_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 "UpdateDistribution"; }
32
33 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const DistributionConfig& GetDistributionConfig() const { return m_distributionConfig; }
42 inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
43 template <typename DistributionConfigT = DistributionConfig>
44 void SetDistributionConfig(DistributionConfigT&& value) {
45 m_distributionConfigHasBeenSet = true;
46 m_distributionConfig = std::forward<DistributionConfigT>(value);
47 }
48 template <typename DistributionConfigT = DistributionConfig>
50 SetDistributionConfig(std::forward<DistributionConfigT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
79 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
80 template <typename IfMatchT = Aws::String>
81 void SetIfMatch(IfMatchT&& value) {
82 m_ifMatchHasBeenSet = true;
83 m_ifMatch = std::forward<IfMatchT>(value);
84 }
85 template <typename IfMatchT = Aws::String>
87 SetIfMatch(std::forward<IfMatchT>(value));
88 return *this;
89 }
91 private:
92 DistributionConfig m_distributionConfig;
93
94 Aws::String m_id;
95
96 Aws::String m_ifMatch;
97 bool m_distributionConfigHasBeenSet = false;
98 bool m_idHasBeenSet = false;
99 bool m_ifMatchHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudFront
104} // namespace Aws
UpdateDistribution2020_05_31Request & WithIfMatch(IfMatchT &&value)
UpdateDistribution2020_05_31Request & WithDistributionConfig(DistributionConfigT &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDFRONT_API UpdateDistribution2020_05_31Request()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String