AWS SDK for C++  1.9.109
AWS SDK for C++
DeregisterInstancesFromLoadBalancerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancing
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DeregisterInstancesFromLoadBalancer"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
49 
53  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
54 
58  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
59 
63  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
64 
68  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
69 
73  inline DeregisterInstancesFromLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
74 
78  inline DeregisterInstancesFromLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
79 
83  inline DeregisterInstancesFromLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
84 
85 
89  inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
90 
94  inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
95 
99  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
100 
104  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
105 
109  inline DeregisterInstancesFromLoadBalancerRequest& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
110 
114  inline DeregisterInstancesFromLoadBalancerRequest& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
115 
119  inline DeregisterInstancesFromLoadBalancerRequest& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
120 
124  inline DeregisterInstancesFromLoadBalancerRequest& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
125 
126  private:
127 
128  Aws::String m_loadBalancerName;
129  bool m_loadBalancerNameHasBeenSet;
130 
131  Aws::Vector<Instance> m_instances;
132  bool m_instancesHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace ElasticLoadBalancing
137 } // namespace Aws
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::AddInstances
DeregisterInstancesFromLoadBalancerRequest & AddInstances(const Instance &value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:119
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::InstancesHasBeenSet
bool InstancesHasBeenSet() const
Definition: DeregisterInstancesFromLoadBalancerRequest.h:94
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticLoadBalancing::ElasticLoadBalancingRequest
Definition: ElasticLoadBalancingRequest.h:17
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::WithInstances
DeregisterInstancesFromLoadBalancerRequest & WithInstances(Aws::Vector< Instance > &&value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:114
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeregisterInstancesFromLoadBalancerRequest.h:36
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::WithLoadBalancerName
DeregisterInstancesFromLoadBalancerRequest & WithLoadBalancerName(const char *value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:83
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::WithInstances
DeregisterInstancesFromLoadBalancerRequest & WithInstances(const Aws::Vector< Instance > &value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:109
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticLoadBalancing::Model::Instance
Definition: Instance.h:32
AWSVector.h
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:68
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:63
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: DeregisterInstancesFromLoadBalancerRequest.h:48
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:99
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::DeregisterInstancesFromLoadBalancerRequest
DeregisterInstancesFromLoadBalancerRequest()
AWSString.h
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:58
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:104
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest
Definition: DeregisterInstancesFromLoadBalancerRequest.h:28
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::AddInstances
DeregisterInstancesFromLoadBalancerRequest & AddInstances(Instance &&value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:124
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::WithLoadBalancerName
DeregisterInstancesFromLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:78
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCING_API
#define AWS_ELASTICLOADBALANCING_API
Definition: ElasticLoadBalancing_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
ElasticLoadBalancing_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: DeregisterInstancesFromLoadBalancerRequest.h:53
Instance.h
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::WithLoadBalancerName
DeregisterInstancesFromLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
Definition: DeregisterInstancesFromLoadBalancerRequest.h:73
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticLoadBalancing::Model::DeregisterInstancesFromLoadBalancerRequest::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: DeregisterInstancesFromLoadBalancerRequest.h:89
ElasticLoadBalancingRequest.h