AWS SDK for C++  1.8.95
AWS SDK for C++
ApplyEnvironmentManagedActionRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ApplyEnvironmentManagedAction"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
47 
51  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
52 
56  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
57 
61  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
62 
66  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
67 
71  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
72 
76  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
77 
81  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
82 
83 
87  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
88 
92  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
93 
97  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
98 
102  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
103 
107  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
108 
112  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
113 
117  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
118 
122  inline ApplyEnvironmentManagedActionRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
123 
124 
128  inline const Aws::String& GetActionId() const{ return m_actionId; }
129 
133  inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
134 
138  inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
139 
143  inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
144 
148  inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
149 
153  inline ApplyEnvironmentManagedActionRequest& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
154 
158  inline ApplyEnvironmentManagedActionRequest& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
159 
163  inline ApplyEnvironmentManagedActionRequest& WithActionId(const char* value) { SetActionId(value); return *this;}
164 
165  private:
166 
167  Aws::String m_environmentName;
168  bool m_environmentNameHasBeenSet;
169 
170  Aws::String m_environmentId;
171  bool m_environmentIdHasBeenSet;
172 
173  Aws::String m_actionId;
174  bool m_actionIdHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace ElasticBeanstalk
179 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
ApplyEnvironmentManagedActionRequest & WithActionId(Aws::String &&value)
ApplyEnvironmentManagedActionRequest & WithActionId(const char *value)
ApplyEnvironmentManagedActionRequest & WithEnvironmentName(const Aws::String &value)
ApplyEnvironmentManagedActionRequest & WithEnvironmentId(const char *value)
ApplyEnvironmentManagedActionRequest & WithActionId(const Aws::String &value)
ApplyEnvironmentManagedActionRequest & WithEnvironmentName(Aws::String &&value)
ApplyEnvironmentManagedActionRequest & WithEnvironmentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ApplyEnvironmentManagedActionRequest & WithEnvironmentName(const char *value)
ApplyEnvironmentManagedActionRequest & WithEnvironmentId(Aws::String &&value)