AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFunction2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/CloudFrontRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudfront/model/FunctionConfig.h>
11#include <aws/core/utils/Array.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudFront
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDFRONT_API CreateFunction2020_05_31Request();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
33
34 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const{ return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateFunction2020_05_31Request& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateFunction2020_05_31Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateFunction2020_05_31Request& WithName(const char* value) { SetName(value); return *this;}
50
52
56 inline const FunctionConfig& GetFunctionConfig() const{ return m_functionConfig; }
57 inline bool FunctionConfigHasBeenSet() const { return m_functionConfigHasBeenSet; }
58 inline void SetFunctionConfig(const FunctionConfig& value) { m_functionConfigHasBeenSet = true; m_functionConfig = value; }
59 inline void SetFunctionConfig(FunctionConfig&& value) { m_functionConfigHasBeenSet = true; m_functionConfig = std::move(value); }
61 inline CreateFunction2020_05_31Request& WithFunctionConfig(FunctionConfig&& value) { SetFunctionConfig(std::move(value)); return *this;}
63
65
72 inline const Aws::Utils::CryptoBuffer& GetFunctionCode() const{ return m_functionCode; }
73 inline bool FunctionCodeHasBeenSet() const { return m_functionCodeHasBeenSet; }
74 inline void SetFunctionCode(const Aws::Utils::CryptoBuffer& value) { m_functionCodeHasBeenSet = true; m_functionCode = value; }
75 inline void SetFunctionCode(Aws::Utils::CryptoBuffer&& value) { m_functionCodeHasBeenSet = true; m_functionCode = std::move(value); }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 FunctionConfig m_functionConfig;
85 bool m_functionConfigHasBeenSet = false;
86
87 Aws::Utils::CryptoBuffer m_functionCode;
88 bool m_functionCodeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudFront
93} // namespace Aws
CreateFunction2020_05_31Request & WithFunctionCode(const Aws::Utils::CryptoBuffer &value)
CreateFunction2020_05_31Request & WithFunctionConfig(FunctionConfig &&value)
CreateFunction2020_05_31Request & WithFunctionCode(Aws::Utils::CryptoBuffer &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
CreateFunction2020_05_31Request & WithName(Aws::String &&value)
CreateFunction2020_05_31Request & WithName(const char *value)
CreateFunction2020_05_31Request & WithName(const Aws::String &value)
CreateFunction2020_05_31Request & WithFunctionConfig(const FunctionConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String