AWS SDK for C++

AWS SDK for C++ Version 1.11.807

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/cloudfront/model/Tags.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudFront {
18namespace Model {
19
23 public:
24 AWS_CLOUDFRONT_API CreateFunction2020_05_31Request() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
31
32 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const FunctionConfig& GetFunctionConfig() const { return m_functionConfig; }
58 inline bool FunctionConfigHasBeenSet() const { return m_functionConfigHasBeenSet; }
59 template <typename FunctionConfigT = FunctionConfig>
60 void SetFunctionConfig(FunctionConfigT&& value) {
61 m_functionConfigHasBeenSet = true;
62 m_functionConfig = std::forward<FunctionConfigT>(value);
63 }
64 template <typename FunctionConfigT = FunctionConfig>
66 SetFunctionConfig(std::forward<FunctionConfigT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::Utils::CryptoBuffer& GetFunctionCode() const { return m_functionCode; }
80 inline bool FunctionCodeHasBeenSet() const { return m_functionCodeHasBeenSet; }
81 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
82 void SetFunctionCode(FunctionCodeT&& value) {
83 m_functionCodeHasBeenSet = true;
84 m_functionCode = std::forward<FunctionCodeT>(value);
85 }
86 template <typename FunctionCodeT = Aws::Utils::CryptoBuffer>
88 SetFunctionCode(std::forward<FunctionCodeT>(value));
89 return *this;
90 }
92
94
95 inline const Tags& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Tags>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Tags>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_name;
110
111 FunctionConfig m_functionConfig;
112
113 Aws::Utils::CryptoBuffer m_functionCode{};
114
115 Tags m_tags;
116 bool m_nameHasBeenSet = false;
117 bool m_functionConfigHasBeenSet = false;
118 bool m_functionCodeHasBeenSet = false;
119 bool m_tagsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CloudFront
124} // 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 & WithTags(TagsT &&value)
CreateFunction2020_05_31Request & WithFunctionCode(FunctionCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String