AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
PutEnvironmentVariablesRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/EnvironmentVariableInput.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AmplifyGen3 {
17namespace Model {
18
22 public:
23 AWS_AMPLIFYGEN3_API PutEnvironmentVariablesRequest() = 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 "PutEnvironmentVariables"; }
30
31 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAppName() const { return m_appName; }
38 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
39 template <typename AppNameT = Aws::String>
40 void SetAppName(AppNameT&& value) {
41 m_appNameHasBeenSet = true;
42 m_appName = std::forward<AppNameT>(value);
43 }
44 template <typename AppNameT = Aws::String>
46 SetAppName(std::forward<AppNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
56 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
57 template <typename EnvironmentNameT = Aws::String>
58 void SetEnvironmentName(EnvironmentNameT&& value) {
59 m_environmentNameHasBeenSet = true;
60 m_environmentName = std::forward<EnvironmentNameT>(value);
61 }
62 template <typename EnvironmentNameT = Aws::String>
64 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<EnvironmentVariableInput>& GetEnvironmentVariables() const { return m_environmentVariables; }
74 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
75 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariableInput>>
76 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
77 m_environmentVariablesHasBeenSet = true;
78 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
79 }
80 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariableInput>>
82 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
83 return *this;
84 }
85 template <typename EnvironmentVariablesT = EnvironmentVariableInput>
87 m_environmentVariablesHasBeenSet = true;
88 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_appName;
94
95 Aws::String m_environmentName;
96
97 Aws::Vector<EnvironmentVariableInput> m_environmentVariables;
98 bool m_appNameHasBeenSet = false;
99 bool m_environmentNameHasBeenSet = false;
100 bool m_environmentVariablesHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AmplifyGen3
105} // namespace Aws
PutEnvironmentVariablesRequest & WithAppName(AppNameT &&value)
const Aws::Vector< EnvironmentVariableInput > & GetEnvironmentVariables() const
PutEnvironmentVariablesRequest & WithEnvironmentName(EnvironmentNameT &&value)
PutEnvironmentVariablesRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
PutEnvironmentVariablesRequest & AddEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_AMPLIFYGEN3_API PutEnvironmentVariablesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector