AWS SDK for C++  1.8.71
AWS SDK for C++
AttachLoadBalancerTargetGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace 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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
44 
48  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
49 
53  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
54 
58  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
59 
63  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
64 
68  inline AttachLoadBalancerTargetGroupsRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
69 
73  inline AttachLoadBalancerTargetGroupsRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
74 
78  inline AttachLoadBalancerTargetGroupsRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
79 
80 
85  inline const Aws::Vector<Aws::String>& GetTargetGroupARNs() const{ return m_targetGroupARNs; }
86 
91  inline bool TargetGroupARNsHasBeenSet() const { return m_targetGroupARNsHasBeenSet; }
92 
97  inline void SetTargetGroupARNs(const Aws::Vector<Aws::String>& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs = value; }
98 
103  inline void SetTargetGroupARNs(Aws::Vector<Aws::String>&& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs = std::move(value); }
104 
109  inline AttachLoadBalancerTargetGroupsRequest& WithTargetGroupARNs(const Aws::Vector<Aws::String>& value) { SetTargetGroupARNs(value); return *this;}
110 
115  inline AttachLoadBalancerTargetGroupsRequest& WithTargetGroupARNs(Aws::Vector<Aws::String>&& value) { SetTargetGroupARNs(std::move(value)); return *this;}
116 
121  inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(const Aws::String& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(value); return *this; }
122 
127  inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(Aws::String&& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(std::move(value)); return *this; }
128 
133  inline AttachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(const char* value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(value); return *this; }
134 
135  private:
136 
137  Aws::String m_autoScalingGroupName;
138  bool m_autoScalingGroupNameHasBeenSet;
139 
140  Aws::Vector<Aws::String> m_targetGroupARNs;
141  bool m_targetGroupARNsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace AutoScaling
146 } // namespace Aws
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const Aws::String &value)
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AttachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(Aws::Vector< Aws::String > &&value)
AttachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(const Aws::Vector< Aws::String > &value)
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const Aws::String &value)
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const char *value)
AttachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_AUTOSCALING_API
AttachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(Aws::String &&value)