AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeInstancesHealthRequest.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticbeanstalk/model/InstancesHealthAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticBeanstalk
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICBEANSTALK_API DescribeInstancesHealthRequest();
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 "DescribeInstancesHealth"; }
37
38 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
50 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
51 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
52 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
53 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
55 inline DescribeInstancesHealthRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
56 inline DescribeInstancesHealthRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
58
60
63 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
64 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
65 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
66 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
67 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
69 inline DescribeInstancesHealthRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
70 inline DescribeInstancesHealthRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
72
74
79 inline const Aws::Vector<InstancesHealthAttribute>& GetAttributeNames() const{ return m_attributeNames; }
80 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
81 inline void SetAttributeNames(const Aws::Vector<InstancesHealthAttribute>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
82 inline void SetAttributeNames(Aws::Vector<InstancesHealthAttribute>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
85 inline DescribeInstancesHealthRequest& AddAttributeNames(const InstancesHealthAttribute& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
86 inline DescribeInstancesHealthRequest& AddAttributeNames(InstancesHealthAttribute&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 inline DescribeInstancesHealthRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline DescribeInstancesHealthRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline DescribeInstancesHealthRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102 private:
103
104 Aws::String m_environmentName;
105 bool m_environmentNameHasBeenSet = false;
106
107 Aws::String m_environmentId;
108 bool m_environmentIdHasBeenSet = false;
109
111 bool m_attributeNamesHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ElasticBeanstalk
119} // namespace Aws
DescribeInstancesHealthRequest & WithNextToken(Aws::String &&value)
DescribeInstancesHealthRequest & WithNextToken(const char *value)
DescribeInstancesHealthRequest & WithEnvironmentName(const char *value)
DescribeInstancesHealthRequest & AddAttributeNames(const InstancesHealthAttribute &value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeInstancesHealthRequest & WithEnvironmentId(Aws::String &&value)
DescribeInstancesHealthRequest & WithAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
void SetAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
void SetAttributeNames(Aws::Vector< InstancesHealthAttribute > &&value)
DescribeInstancesHealthRequest & WithEnvironmentId(const char *value)
DescribeInstancesHealthRequest & WithEnvironmentId(const Aws::String &value)
DescribeInstancesHealthRequest & WithAttributeNames(const Aws::Vector< InstancesHealthAttribute > &value)
DescribeInstancesHealthRequest & AddAttributeNames(InstancesHealthAttribute &&value)
DescribeInstancesHealthRequest & WithEnvironmentName(const Aws::String &value)
const Aws::Vector< InstancesHealthAttribute > & GetAttributeNames() const
DescribeInstancesHealthRequest & WithNextToken(const Aws::String &value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
DescribeInstancesHealthRequest & WithEnvironmentName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector