AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/continuum/ContinuumRequest.h>
8#include <aws/continuum/Continuum_EXPORTS.h>
9#include <aws/continuum/model/UpdateEnvironmentConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Continuum {
16namespace Model {
17
30 public:
31 AWS_CONTINUUM_API UpdateEnvironmentRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
38
39 AWS_CONTINUUM_API Aws::String SerializePayload() const override;
40
42
45 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
46 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
47 template <typename EnvironmentIdT = Aws::String>
48 void SetEnvironmentId(EnvironmentIdT&& value) {
49 m_environmentIdHasBeenSet = true;
50 m_environmentId = std::forward<EnvironmentIdT>(value);
51 }
52 template <typename EnvironmentIdT = Aws::String>
54 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
82 inline const UpdateEnvironmentConfiguration& GetConfiguration() const { return m_configuration; }
83 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
84 template <typename ConfigurationT = UpdateEnvironmentConfiguration>
85 void SetConfiguration(ConfigurationT&& value) {
86 m_configurationHasBeenSet = true;
87 m_configuration = std::forward<ConfigurationT>(value);
88 }
89 template <typename ConfigurationT = UpdateEnvironmentConfiguration>
91 SetConfiguration(std::forward<ConfigurationT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_environmentId;
97
98 Aws::String m_name;
99
100 UpdateEnvironmentConfiguration m_configuration;
101 bool m_environmentIdHasBeenSet = false;
102 bool m_nameHasBeenSet = false;
103 bool m_configurationHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Continuum
108} // namespace Aws
UpdateEnvironmentRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithConfiguration(ConfigurationT &&value)
AWS_CONTINUUM_API Aws::String SerializePayload() const override
AWS_CONTINUUM_API UpdateEnvironmentRequest()=default
UpdateEnvironmentRequest & WithEnvironmentId(EnvironmentIdT &&value)
const UpdateEnvironmentConfiguration & GetConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String