AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAliasRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/AliasRoutingConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lambda
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LAMBDA_API CreateAliasRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
32
33 AWS_LAMBDA_API Aws::String SerializePayload() const override;
34
35
37
47 inline const Aws::String& GetFunctionName() const { return m_functionName; }
48 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
49 template<typename FunctionNameT = Aws::String>
50 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
51 template<typename FunctionNameT = Aws::String>
52 CreateAliasRequest& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateAliasRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
72 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
73 template<typename FunctionVersionT = Aws::String>
74 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::forward<FunctionVersionT>(value); }
75 template<typename FunctionVersionT = Aws::String>
76 CreateAliasRequest& WithFunctionVersion(FunctionVersionT&& value) { SetFunctionVersion(std::forward<FunctionVersionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 CreateAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
97 inline const AliasRoutingConfiguration& GetRoutingConfig() const { return m_routingConfig; }
98 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
99 template<typename RoutingConfigT = AliasRoutingConfiguration>
100 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
101 template<typename RoutingConfigT = AliasRoutingConfiguration>
102 CreateAliasRequest& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
104 private:
105
106 Aws::String m_functionName;
107 bool m_functionNameHasBeenSet = false;
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_functionVersion;
113 bool m_functionVersionHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 AliasRoutingConfiguration m_routingConfig;
119 bool m_routingConfigHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Lambda
124} // namespace Aws
void SetFunctionName(FunctionNameT &&value)
CreateAliasRequest & WithFunctionName(FunctionNameT &&value)
void SetDescription(DescriptionT &&value)
AWS_LAMBDA_API CreateAliasRequest()=default
CreateAliasRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
void SetFunctionVersion(FunctionVersionT &&value)
void SetRoutingConfig(RoutingConfigT &&value)
CreateAliasRequest & WithRoutingConfig(RoutingConfigT &&value)
const AliasRoutingConfiguration & GetRoutingConfig() const
CreateAliasRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetFunctionVersion() const
const Aws::String & GetFunctionName() const
CreateAliasRequest & WithFunctionVersion(FunctionVersionT &&value)
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String