AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTargetHealthRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancingv2/model/TargetDescription.h>
12#include <aws/elasticloadbalancingv2/model/DescribeTargetHealthInputIncludeEnum.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ElasticLoadBalancingv2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthRequest();
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 "DescribeTargetHealth"; }
34
35 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
47 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
48 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
49 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
50 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
51 inline DescribeTargetHealthRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
52 inline DescribeTargetHealthRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
53 inline DescribeTargetHealthRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
55
57
60 inline const Aws::Vector<TargetDescription>& GetTargets() const{ return m_targets; }
61 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
62 inline void SetTargets(const Aws::Vector<TargetDescription>& value) { m_targetsHasBeenSet = true; m_targets = value; }
63 inline void SetTargets(Aws::Vector<TargetDescription>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
65 inline DescribeTargetHealthRequest& WithTargets(Aws::Vector<TargetDescription>&& value) { SetTargets(std::move(value)); return *this;}
66 inline DescribeTargetHealthRequest& AddTargets(const TargetDescription& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
67 inline DescribeTargetHealthRequest& AddTargets(TargetDescription&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::Vector<DescribeTargetHealthInputIncludeEnum>& GetInclude() const{ return m_include; }
75 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
76 inline void SetInclude(const Aws::Vector<DescribeTargetHealthInputIncludeEnum>& value) { m_includeHasBeenSet = true; m_include = value; }
77 inline void SetInclude(Aws::Vector<DescribeTargetHealthInputIncludeEnum>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
80 inline DescribeTargetHealthRequest& AddInclude(const DescribeTargetHealthInputIncludeEnum& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
81 inline DescribeTargetHealthRequest& AddInclude(DescribeTargetHealthInputIncludeEnum&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_targetGroupArn;
86 bool m_targetGroupArnHasBeenSet = false;
87
89 bool m_targetsHasBeenSet = false;
90
92 bool m_includeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ElasticLoadBalancingv2
97} // namespace Aws
DescribeTargetHealthRequest & WithInclude(Aws::Vector< DescribeTargetHealthInputIncludeEnum > &&value)
DescribeTargetHealthRequest & AddTargets(const TargetDescription &value)
DescribeTargetHealthRequest & WithTargetGroupArn(Aws::String &&value)
void SetTargets(const Aws::Vector< TargetDescription > &value)
DescribeTargetHealthRequest & WithInclude(const Aws::Vector< DescribeTargetHealthInputIncludeEnum > &value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
DescribeTargetHealthRequest & WithTargets(Aws::Vector< TargetDescription > &&value)
const Aws::Vector< DescribeTargetHealthInputIncludeEnum > & GetInclude() const
void SetInclude(const Aws::Vector< DescribeTargetHealthInputIncludeEnum > &value)
DescribeTargetHealthRequest & AddInclude(DescribeTargetHealthInputIncludeEnum &&value)
DescribeTargetHealthRequest & AddInclude(const DescribeTargetHealthInputIncludeEnum &value)
DescribeTargetHealthRequest & WithTargets(const Aws::Vector< TargetDescription > &value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeTargetHealthRequest & WithTargetGroupArn(const Aws::String &value)
void SetInclude(Aws::Vector< DescribeTargetHealthInputIncludeEnum > &&value)
DescribeTargetHealthRequest & AddTargets(TargetDescription &&value)
DescribeTargetHealthRequest & WithTargetGroupArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector