AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeregisterTargetsRequest.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 <utility>
13
14namespace Aws
15{
16namespace ElasticLoadBalancingv2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICLOADBALANCINGV2_API DeregisterTargetsRequest();
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 "DeregisterTargets"; }
33
34 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
46 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
47 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
48 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
49 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
50 inline DeregisterTargetsRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
51 inline DeregisterTargetsRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
52 inline DeregisterTargetsRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
54
56
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 DeregisterTargetsRequest& WithTargets(Aws::Vector<TargetDescription>&& value) { SetTargets(std::move(value)); return *this;}
66 inline DeregisterTargetsRequest& AddTargets(const TargetDescription& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
67 inline DeregisterTargetsRequest& AddTargets(TargetDescription&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_targetGroupArn;
72 bool m_targetGroupArnHasBeenSet = false;
73
75 bool m_targetsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ElasticLoadBalancingv2
80} // namespace Aws
DeregisterTargetsRequest & WithTargetGroupArn(Aws::String &&value)
DeregisterTargetsRequest & AddTargets(const TargetDescription &value)
DeregisterTargetsRequest & WithTargets(Aws::Vector< TargetDescription > &&value)
const Aws::Vector< TargetDescription > & GetTargets() const
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTargets(Aws::Vector< TargetDescription > &&value)
DeregisterTargetsRequest & AddTargets(TargetDescription &&value)
DeregisterTargetsRequest & WithTargetGroupArn(const char *value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
void SetTargets(const Aws::Vector< TargetDescription > &value)
DeregisterTargetsRequest & WithTargets(const Aws::Vector< TargetDescription > &value)
DeregisterTargetsRequest & WithTargetGroupArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector