AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/cloud9/Cloud9Request.h>
8#include <aws/cloud9/Cloud9_EXPORTS.h>
9#include <aws/cloud9/model/ManagedCredentialsAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Cloud9 {
16namespace Model {
17
21 public:
22 AWS_CLOUD9_API UpdateEnvironmentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
29
30 AWS_CLOUD9_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
39 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
40 template <typename EnvironmentIdT = Aws::String>
41 void SetEnvironmentId(EnvironmentIdT&& value) {
42 m_environmentIdHasBeenSet = true;
43 m_environmentId = std::forward<EnvironmentIdT>(value);
44 }
45 template <typename EnvironmentIdT = Aws::String>
47 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
99 inline ManagedCredentialsAction GetManagedCredentialsAction() const { return m_managedCredentialsAction; }
100 inline bool ManagedCredentialsActionHasBeenSet() const { return m_managedCredentialsActionHasBeenSet; }
102 m_managedCredentialsActionHasBeenSet = true;
103 m_managedCredentialsAction = value;
104 }
107 return *this;
108 }
110 private:
111 Aws::String m_environmentId;
112
113 Aws::String m_name;
114
115 Aws::String m_description;
116
118 bool m_environmentIdHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120 bool m_descriptionHasBeenSet = false;
121 bool m_managedCredentialsActionHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Cloud9
126} // namespace Aws
UpdateEnvironmentRequest & WithDescription(DescriptionT &&value)
UpdateEnvironmentRequest & WithEnvironmentId(EnvironmentIdT &&value)
void SetManagedCredentialsAction(ManagedCredentialsAction value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithName(NameT &&value)
AWS_CLOUD9_API UpdateEnvironmentRequest()=default
AWS_CLOUD9_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithManagedCredentialsAction(ManagedCredentialsAction value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ManagedCredentialsAction GetManagedCredentialsAction() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String