AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateFunction2020_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/FunctionConfig.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudFront {
17namespace Model {
18
22 public:
23 AWS_CLOUDFRONT_API UpdateFunction2020_05_31Request() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunction"; }
30
31 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
59 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
60 template <typename IfMatchT = Aws::String>
61 void SetIfMatch(IfMatchT&& value) {
62 m_ifMatchHasBeenSet = true;
63 m_ifMatch = std::forward<IfMatchT>(value);
64 }
65 template <typename IfMatchT = Aws::String>
67 SetIfMatch(std::forward<IfMatchT>(value));
68 return *this;
69 }
71
73
76 inline const FunctionConfig& GetFunctionConfig() const { return m_functionConfig; }
77 inline bool FunctionConfigHasBeenSet() const { return m_functionConfigHasBeenSet; }
78 template <typename FunctionConfigT = FunctionConfig>
79 void SetFunctionConfig(FunctionConfigT&& value) {
80 m_functionConfigHasBeenSet = true;
81 m_functionConfig = std::forward<FunctionConfigT>(value);
82 }
83 template <typename FunctionConfigT = FunctionConfig>
85 SetFunctionConfig(std::forward<FunctionConfigT>(value));
86 return *this;
87 }
89
91
98 inline const Aws::Utils::CryptoBuffer& GetFunctionCode() const { return m_functionCode; }
99 inline bool FunctionCodeHasBeenSet() const { return m_functionCodeHasBeenSet; }
100 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
101 void SetFunctionCode(FunctionCodeT&& value) {
102 m_functionCodeHasBeenSet = true;
103 m_functionCode = std::forward<FunctionCodeT>(value);
104 }
105 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
107 SetFunctionCode(std::forward<FunctionCodeT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_name;
113
114 Aws::String m_ifMatch;
115
116 FunctionConfig m_functionConfig;
117
118 Aws::Utils::CryptoBuffer m_functionCode{};
119 bool m_nameHasBeenSet = false;
120 bool m_ifMatchHasBeenSet = false;
121 bool m_functionConfigHasBeenSet = false;
122 bool m_functionCodeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CloudFront
127} // namespace Aws
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
UpdateFunction2020_05_31Request & WithIfMatch(IfMatchT &&value)
UpdateFunction2020_05_31Request & WithFunctionCode(FunctionCodeT &&value)
AWS_CLOUDFRONT_API UpdateFunction2020_05_31Request()=default
UpdateFunction2020_05_31Request & WithName(NameT &&value)
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFunction2020_05_31Request & WithFunctionConfig(FunctionConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String