AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateFunction2020_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 CreateFunction2020_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 "CreateFunction"; }
30
31 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
56 inline const FunctionConfig& GetFunctionConfig() const { return m_functionConfig; }
57 inline bool FunctionConfigHasBeenSet() const { return m_functionConfigHasBeenSet; }
58 template <typename FunctionConfigT = FunctionConfig>
59 void SetFunctionConfig(FunctionConfigT&& value) {
60 m_functionConfigHasBeenSet = true;
61 m_functionConfig = std::forward<FunctionConfigT>(value);
62 }
63 template <typename FunctionConfigT = FunctionConfig>
65 SetFunctionConfig(std::forward<FunctionConfigT>(value));
66 return *this;
67 }
69
71
78 inline const Aws::Utils::CryptoBuffer& GetFunctionCode() const { return m_functionCode; }
79 inline bool FunctionCodeHasBeenSet() const { return m_functionCodeHasBeenSet; }
80 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
81 void SetFunctionCode(FunctionCodeT&& value) {
82 m_functionCodeHasBeenSet = true;
83 m_functionCode = std::forward<FunctionCodeT>(value);
84 }
85 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
87 SetFunctionCode(std::forward<FunctionCodeT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_name;
93
94 FunctionConfig m_functionConfig;
95
96 Aws::Utils::CryptoBuffer m_functionCode{};
97 bool m_nameHasBeenSet = false;
98 bool m_functionConfigHasBeenSet = false;
99 bool m_functionCodeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudFront
104} // namespace Aws
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
CreateFunction2020_05_31Request & WithFunctionConfig(FunctionConfigT &&value)
AWS_CLOUDFRONT_API CreateFunction2020_05_31Request()=default
CreateFunction2020_05_31Request & WithName(NameT &&value)
CreateFunction2020_05_31Request & WithFunctionCode(FunctionCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String