AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeTargetHealthRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancingv2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeTargetHealth"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
45 
49  inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
50 
54  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
55 
59  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
60 
64  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
65 
69  inline DescribeTargetHealthRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
70 
74  inline DescribeTargetHealthRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
75 
79  inline DescribeTargetHealthRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
80 
81 
85  inline const Aws::Vector<TargetDescription>& GetTargets() const{ return m_targets; }
86 
90  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
91 
95  inline void SetTargets(const Aws::Vector<TargetDescription>& value) { m_targetsHasBeenSet = true; m_targets = value; }
96 
100  inline void SetTargets(Aws::Vector<TargetDescription>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
101 
105  inline DescribeTargetHealthRequest& WithTargets(const Aws::Vector<TargetDescription>& value) { SetTargets(value); return *this;}
106 
110  inline DescribeTargetHealthRequest& WithTargets(Aws::Vector<TargetDescription>&& value) { SetTargets(std::move(value)); return *this;}
111 
115  inline DescribeTargetHealthRequest& AddTargets(const TargetDescription& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
116 
120  inline DescribeTargetHealthRequest& AddTargets(TargetDescription&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
121 
122  private:
123 
124  Aws::String m_targetGroupArn;
125  bool m_targetGroupArnHasBeenSet;
126 
128  bool m_targetsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ElasticLoadBalancingv2
133 } // namespace Aws
DescribeTargetHealthRequest & WithTargets(const Aws::Vector< TargetDescription > &value)
DescribeTargetHealthRequest & WithTargetGroupArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeTargetHealthRequest & WithTargets(Aws::Vector< TargetDescription > &&value)
DescribeTargetHealthRequest & WithTargetGroupArn(const char *value)
DescribeTargetHealthRequest & AddTargets(TargetDescription &&value)
void SetTargets(const Aws::Vector< TargetDescription > &value)
DescribeTargetHealthRequest & AddTargets(const TargetDescription &value)
DescribeTargetHealthRequest & WithTargetGroupArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICLOADBALANCINGV2_API