AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeEnvironmentHealthRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticBeanstalk
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeEnvironmentHealth"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
49  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
50 
55  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
56 
61  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
62 
67  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
68 
73  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
74 
79  inline DescribeEnvironmentHealthRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
80 
85  inline DescribeEnvironmentHealthRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
86 
91  inline DescribeEnvironmentHealthRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
92 
93 
98  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
99 
104  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
105 
110  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
111 
116  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
117 
122  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
123 
128  inline DescribeEnvironmentHealthRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
129 
134  inline DescribeEnvironmentHealthRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
135 
140  inline DescribeEnvironmentHealthRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
141 
142 
148  inline const Aws::Vector<EnvironmentHealthAttribute>& GetAttributeNames() const{ return m_attributeNames; }
149 
155  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
156 
162  inline void SetAttributeNames(const Aws::Vector<EnvironmentHealthAttribute>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
163 
169  inline void SetAttributeNames(Aws::Vector<EnvironmentHealthAttribute>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
170 
176  inline DescribeEnvironmentHealthRequest& WithAttributeNames(const Aws::Vector<EnvironmentHealthAttribute>& value) { SetAttributeNames(value); return *this;}
177 
183  inline DescribeEnvironmentHealthRequest& WithAttributeNames(Aws::Vector<EnvironmentHealthAttribute>&& value) { SetAttributeNames(std::move(value)); return *this;}
184 
190  inline DescribeEnvironmentHealthRequest& AddAttributeNames(const EnvironmentHealthAttribute& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
191 
197  inline DescribeEnvironmentHealthRequest& AddAttributeNames(EnvironmentHealthAttribute&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
198 
199  private:
200 
201  Aws::String m_environmentName;
202  bool m_environmentNameHasBeenSet;
203 
204  Aws::String m_environmentId;
205  bool m_environmentIdHasBeenSet;
206 
208  bool m_attributeNamesHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace ElasticBeanstalk
213 } // namespace Aws
DescribeEnvironmentHealthRequest & WithEnvironmentName(Aws::String &&value)
void SetAttributeNames(Aws::Vector< EnvironmentHealthAttribute > &&value)
DescribeEnvironmentHealthRequest & WithAttributeNames(Aws::Vector< EnvironmentHealthAttribute > &&value)
#define AWS_ELASTICBEANSTALK_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeEnvironmentHealthRequest & WithEnvironmentName(const Aws::String &value)
const Aws::Vector< EnvironmentHealthAttribute > & GetAttributeNames() const
DescribeEnvironmentHealthRequest & WithEnvironmentName(const char *value)
DescribeEnvironmentHealthRequest & WithEnvironmentId(const char *value)
DescribeEnvironmentHealthRequest & WithAttributeNames(const Aws::Vector< EnvironmentHealthAttribute > &value)
DescribeEnvironmentHealthRequest & AddAttributeNames(EnvironmentHealthAttribute &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAttributeNames(const Aws::Vector< EnvironmentHealthAttribute > &value)
DescribeEnvironmentHealthRequest & AddAttributeNames(const EnvironmentHealthAttribute &value)
DescribeEnvironmentHealthRequest & WithEnvironmentId(const Aws::String &value)
DescribeEnvironmentHealthRequest & WithEnvironmentId(Aws::String &&value)