AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TestFunction2020_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/FunctionStage.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 TestFunction2020_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 "TestFunction"; }
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
77 inline FunctionStage GetStage() const { return m_stage; }
78 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
79 inline void SetStage(FunctionStage value) {
80 m_stageHasBeenSet = true;
81 m_stage = value;
82 }
84 SetStage(value);
85 return *this;
86 }
88
90
96 inline const Aws::Utils::CryptoBuffer& GetEventObject() const { return m_eventObject; }
97 inline bool EventObjectHasBeenSet() const { return m_eventObjectHasBeenSet; }
98 template <typename EventObjectT = Aws::Utils::CryptoBuffer>
99 void SetEventObject(EventObjectT&& value) {
100 m_eventObjectHasBeenSet = true;
101 m_eventObject = std::forward<EventObjectT>(value);
102 }
103 template <typename EventObjectT = Aws::Utils::CryptoBuffer>
105 SetEventObject(std::forward<EventObjectT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_name;
111
112 Aws::String m_ifMatch;
113
115
116 Aws::Utils::CryptoBuffer m_eventObject{};
117 bool m_nameHasBeenSet = false;
118 bool m_ifMatchHasBeenSet = false;
119 bool m_stageHasBeenSet = false;
120 bool m_eventObjectHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CloudFront
125} // namespace Aws
TestFunction2020_05_31Request & WithStage(FunctionStage value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TestFunction2020_05_31Request & WithIfMatch(IfMatchT &&value)
AWS_CLOUDFRONT_API TestFunction2020_05_31Request()=default
TestFunction2020_05_31Request & WithEventObject(EventObjectT &&value)
TestFunction2020_05_31Request & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String