AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeregisterTargetsRequest.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/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/TargetDescription.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticLoadBalancingv2 {
17namespace Model {
18
22 public:
23 AWS_ELASTICLOADBALANCINGV2_API DeregisterTargetsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DeregisterTargets"; }
30
31 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
42 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
43 template <typename TargetGroupArnT = Aws::String>
44 void SetTargetGroupArn(TargetGroupArnT&& value) {
45 m_targetGroupArnHasBeenSet = true;
46 m_targetGroupArn = std::forward<TargetGroupArnT>(value);
47 }
48 template <typename TargetGroupArnT = Aws::String>
49 DeregisterTargetsRequest& WithTargetGroupArn(TargetGroupArnT&& value) {
50 SetTargetGroupArn(std::forward<TargetGroupArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<TargetDescription>& GetTargets() const { return m_targets; }
61 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
62 template <typename TargetsT = Aws::Vector<TargetDescription>>
63 void SetTargets(TargetsT&& value) {
64 m_targetsHasBeenSet = true;
65 m_targets = std::forward<TargetsT>(value);
66 }
67 template <typename TargetsT = Aws::Vector<TargetDescription>>
69 SetTargets(std::forward<TargetsT>(value));
70 return *this;
71 }
72 template <typename TargetsT = TargetDescription>
74 m_targetsHasBeenSet = true;
75 m_targets.emplace_back(std::forward<TargetsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_targetGroupArn;
81
83 bool m_targetGroupArnHasBeenSet = false;
84 bool m_targetsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ElasticLoadBalancingv2
89} // namespace Aws
DeregisterTargetsRequest & WithTargetGroupArn(TargetGroupArnT &&value)
const Aws::Vector< TargetDescription > & GetTargets() const
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCINGV2_API DeregisterTargetsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector