AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachLoadBalancerTargetGroupsRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AutoScaling
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AttachLoadBalancerTargetGroups"; }
32
33 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
45 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
46 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
47 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
48 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
53
55
62 inline const Aws::Vector<Aws::String>& GetTargetGroupARNs() const{ return m_targetGroupARNs; }
63 inline bool TargetGroupARNsHasBeenSet() const { return m_targetGroupARNsHasBeenSet; }
64 inline void SetTargetGroupARNs(const Aws::Vector<Aws::String>& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs = value; }
65 inline void SetTargetGroupARNs(Aws::Vector<Aws::String>&& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs = std::move(value); }
68 inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(const Aws::String& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(value); return *this; }
69 inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(Aws::String&& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(std::move(value)); return *this; }
70 inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(const char* value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(value); return *this; }
72 private:
73
74 Aws::String m_autoScalingGroupName;
75 bool m_autoScalingGroupNameHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_targetGroupARNs;
78 bool m_targetGroupARNsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace AutoScaling
83} // namespace Aws
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const Aws::String &value)
AttachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(const Aws::Vector< Aws::String > &value)
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(Aws::String &&value)
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const char *value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const char *value)
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const Aws::String &value)
AttachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(Aws::Vector< Aws::String > &&value)
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector