AWS SDK for C++  1.9.158
AWS SDK for C++
DetachLoadBalancerTargetGroupsRequest.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 "DetachLoadBalancerTargetGroups"; }
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 DetachLoadBalancerTargetGroupsRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
69 
73  inline DetachLoadBalancerTargetGroupsRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
74 
78  inline DetachLoadBalancerTargetGroupsRequest& 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 DetachLoadBalancerTargetGroupsRequest& WithTargetGroupARNs(const Aws::Vector<Aws::String>& value) { SetTargetGroupARNs(value); return *this;}
110 
115  inline DetachLoadBalancerTargetGroupsRequest& WithTargetGroupARNs(Aws::Vector<Aws::String>&& value) { SetTargetGroupARNs(std::move(value)); return *this;}
116 
121  inline DetachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(const Aws::String& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(value); return *this; }
122 
127  inline DetachLoadBalancerTargetGroupsRequest& AddTargetGroupARNs(Aws::String&& value) { m_targetGroupARNsHasBeenSet = true; m_targetGroupARNs.push_back(std::move(value)); return *this; }
128 
133  inline DetachLoadBalancerTargetGroupsRequest& 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
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::WithAutoScalingGroupName
DetachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const char *value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:78
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::WithAutoScalingGroupName
DetachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:73
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::GetTargetGroupARNs
const Aws::Vector< Aws::String > & GetTargetGroupARNs() const
Definition: DetachLoadBalancerTargetGroupsRequest.h:85
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::AddTargetGroupARNs
DetachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const char *value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:133
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::WithTargetGroupARNs
DetachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(const Aws::Vector< Aws::String > &value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:109
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::AddTargetGroupARNs
DetachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(Aws::String &&value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:127
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachLoadBalancerTargetGroupsRequest.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest
Definition: DetachLoadBalancerTargetGroupsRequest.h:23
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SetTargetGroupARNs
void SetTargetGroupARNs(const Aws::Vector< Aws::String > &value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:97
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: DetachLoadBalancerTargetGroupsRequest.h:48
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::WithTargetGroupARNs
DetachLoadBalancerTargetGroupsRequest & WithTargetGroupARNs(Aws::Vector< Aws::String > &&value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:115
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::DetachLoadBalancerTargetGroupsRequest
DetachLoadBalancerTargetGroupsRequest()
AWSString.h
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:63
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:58
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::WithAutoScalingGroupName
DetachLoadBalancerTargetGroupsRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:68
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::TargetGroupARNsHasBeenSet
bool TargetGroupARNsHasBeenSet() const
Definition: DetachLoadBalancerTargetGroupsRequest.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SetTargetGroupARNs
void SetTargetGroupARNs(Aws::Vector< Aws::String > &&value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:103
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::AddTargetGroupARNs
DetachLoadBalancerTargetGroupsRequest & AddTargetGroupARNs(const Aws::String &value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:121
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: DetachLoadBalancerTargetGroupsRequest.h:53
Aws::AutoScaling::Model::DetachLoadBalancerTargetGroupsRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: DetachLoadBalancerTargetGroupsRequest.h:43