AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Cloud9
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
40  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
41 
45  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
46 
50  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
51 
55  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
56 
60  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
61 
65  inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
66 
70  inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
71 
75  inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
76 
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline UpdateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline UpdateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 
116  inline UpdateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
117 
118 
122  inline const Aws::String& GetDescription() const{ return m_description; }
123 
127  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 
132  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
133 
137  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
138 
142  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
143 
147  inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
148 
152  inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
153 
157  inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
158 
159  private:
160 
161  Aws::String m_environmentId;
162  bool m_environmentIdHasBeenSet;
163 
164  Aws::String m_name;
165  bool m_nameHasBeenSet;
166 
167  Aws::String m_description;
168  bool m_descriptionHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace Cloud9
173 } // namespace Aws
UpdateEnvironmentRequest & WithName(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateEnvironmentRequest & WithName(const char *value)
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithDescription(const char *value)
UpdateEnvironmentRequest & WithName(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUD9_API