AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TargetGroupArnT = Aws::String>
48 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
49 template<typename TargetGroupArnT = Aws::String>
50 DeregisterTargetsRequest& WithTargetGroupArn(TargetGroupArnT&& value) { SetTargetGroupArn(std::forward<TargetGroupArnT>(value)); return *this;}
52
54
58 inline const Aws::Vector<TargetDescription>& GetTargets() const { return m_targets; }
59 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
60 template<typename TargetsT = Aws::Vector<TargetDescription>>
61 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
62 template<typename TargetsT = Aws::Vector<TargetDescription>>
63 DeregisterTargetsRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
64 template<typename TargetsT = TargetDescription>
65 DeregisterTargetsRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
67 private:
68
69 Aws::String m_targetGroupArn;
70 bool m_targetGroupArnHasBeenSet = false;
71
73 bool m_targetsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ElasticLoadBalancingv2
78} // 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