AWS SDK for C++  1.8.95
AWS SDK for C++
RestartAppServerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElasticBeanstalk
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RestartAppServer"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
49 
56  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 
64  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
65 
72  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
73 
80  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
81 
88  inline RestartAppServerRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
89 
96  inline RestartAppServerRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
97 
104  inline RestartAppServerRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
105 
106 
113  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
114 
121  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
122 
129  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
130 
137  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
138 
145  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
146 
153  inline RestartAppServerRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
154 
161  inline RestartAppServerRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
162 
169  inline RestartAppServerRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
170 
171  private:
172 
173  Aws::String m_environmentId;
174  bool m_environmentIdHasBeenSet;
175 
176  Aws::String m_environmentName;
177  bool m_environmentNameHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace ElasticBeanstalk
182 } // namespace Aws
RestartAppServerRequest & WithEnvironmentId(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
RestartAppServerRequest & WithEnvironmentName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
RestartAppServerRequest & WithEnvironmentName(const char *value)
RestartAppServerRequest & WithEnvironmentId(Aws::String &&value)
RestartAppServerRequest & WithEnvironmentId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RestartAppServerRequest & WithEnvironmentName(Aws::String &&value)