AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeInstancesHealthRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/InstancesHealthAttribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticBeanstalk {
17namespace Model {
18
26 public:
27 AWS_ELASTICBEANSTALK_API DescribeInstancesHealthRequest() = default;
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 "DescribeInstancesHealth"; }
34
35 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
46 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
47 template <typename EnvironmentNameT = Aws::String>
48 void SetEnvironmentName(EnvironmentNameT&& value) {
49 m_environmentNameHasBeenSet = true;
50 m_environmentName = std::forward<EnvironmentNameT>(value);
51 }
52 template <typename EnvironmentNameT = Aws::String>
54 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
64 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
65 template <typename EnvironmentIdT = Aws::String>
66 void SetEnvironmentId(EnvironmentIdT&& value) {
67 m_environmentIdHasBeenSet = true;
68 m_environmentId = std::forward<EnvironmentIdT>(value);
69 }
70 template <typename EnvironmentIdT = Aws::String>
72 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<InstancesHealthAttribute>& GetAttributeNames() const { return m_attributeNames; }
84 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
85 template <typename AttributeNamesT = Aws::Vector<InstancesHealthAttribute>>
86 void SetAttributeNames(AttributeNamesT&& value) {
87 m_attributeNamesHasBeenSet = true;
88 m_attributeNames = std::forward<AttributeNamesT>(value);
89 }
90 template <typename AttributeNamesT = Aws::Vector<InstancesHealthAttribute>>
92 SetAttributeNames(std::forward<AttributeNamesT>(value));
93 return *this;
94 }
96 m_attributeNamesHasBeenSet = true;
97 m_attributeNames.push_back(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_environmentName;
121
122 Aws::String m_environmentId;
123
125
126 Aws::String m_nextToken;
127 bool m_environmentNameHasBeenSet = false;
128 bool m_environmentIdHasBeenSet = false;
129 bool m_attributeNamesHasBeenSet = false;
130 bool m_nextTokenHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ElasticBeanstalk
135} // namespace Aws
DescribeInstancesHealthRequest & WithAttributeNames(AttributeNamesT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICBEANSTALK_API DescribeInstancesHealthRequest()=default
DescribeInstancesHealthRequest & WithEnvironmentId(EnvironmentIdT &&value)
DescribeInstancesHealthRequest & AddAttributeNames(InstancesHealthAttribute value)
const Aws::Vector< InstancesHealthAttribute > & GetAttributeNames() const
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
DescribeInstancesHealthRequest & WithEnvironmentName(EnvironmentNameT &&value)
DescribeInstancesHealthRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector