AWS SDK for C++  1.9.106
AWS SDK for C++
DetachInstancesFromLoadBalancerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
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 "DetachInstancesFromLoadBalancer"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
42 
46  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
47 
51  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
52 
56  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
57 
61  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
62 
66  inline DetachInstancesFromLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
67 
71  inline DetachInstancesFromLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
72 
76  inline DetachInstancesFromLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
77 
78 
83  inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
84 
89  inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
90 
95  inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
96 
101  inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
102 
107  inline DetachInstancesFromLoadBalancerRequest& WithInstanceNames(const Aws::Vector<Aws::String>& value) { SetInstanceNames(value); return *this;}
108 
113  inline DetachInstancesFromLoadBalancerRequest& WithInstanceNames(Aws::Vector<Aws::String>&& value) { SetInstanceNames(std::move(value)); return *this;}
114 
119  inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
120 
125  inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
126 
131  inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
132 
133  private:
134 
135  Aws::String m_loadBalancerName;
136  bool m_loadBalancerNameHasBeenSet;
137 
138  Aws::Vector<Aws::String> m_instanceNames;
139  bool m_instanceNamesHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace Lightsail
144 } // namespace Aws
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::WithInstanceNames
DetachInstancesFromLoadBalancerRequest & WithInstanceNames(Aws::Vector< Aws::String > &&value)
Definition: DetachInstancesFromLoadBalancerRequest.h:113
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: DetachInstancesFromLoadBalancerRequest.h:46
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: DetachInstancesFromLoadBalancerRequest.h:41
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::WithLoadBalancerName
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
Definition: DetachInstancesFromLoadBalancerRequest.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::GetInstanceNames
const Aws::Vector< Aws::String > & GetInstanceNames() const
Definition: DetachInstancesFromLoadBalancerRequest.h:83
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SetInstanceNames
void SetInstanceNames(Aws::Vector< Aws::String > &&value)
Definition: DetachInstancesFromLoadBalancerRequest.h:101
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SetInstanceNames
void SetInstanceNames(const Aws::Vector< Aws::String > &value)
Definition: DetachInstancesFromLoadBalancerRequest.h:95
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::WithLoadBalancerName
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(const char *value)
Definition: DetachInstancesFromLoadBalancerRequest.h:76
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::WithInstanceNames
DetachInstancesFromLoadBalancerRequest & WithInstanceNames(const Aws::Vector< Aws::String > &value)
Definition: DetachInstancesFromLoadBalancerRequest.h:107
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::WithLoadBalancerName
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
Definition: DetachInstancesFromLoadBalancerRequest.h:71
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::AddInstanceNames
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(const Aws::String &value)
Definition: DetachInstancesFromLoadBalancerRequest.h:119
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: DetachInstancesFromLoadBalancerRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: DetachInstancesFromLoadBalancerRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachInstancesFromLoadBalancerRequest.h:31
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::DetachInstancesFromLoadBalancerRequest
DetachInstancesFromLoadBalancerRequest()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: DetachInstancesFromLoadBalancerRequest.h:51
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest
Definition: DetachInstancesFromLoadBalancerRequest.h:23
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::AddInstanceNames
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(Aws::String &&value)
Definition: DetachInstancesFromLoadBalancerRequest.h:125
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::AddInstanceNames
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(const char *value)
Definition: DetachInstancesFromLoadBalancerRequest.h:131
Aws::Lightsail::Model::DetachInstancesFromLoadBalancerRequest::InstanceNamesHasBeenSet
bool InstanceNamesHasBeenSet() const
Definition: DetachInstancesFromLoadBalancerRequest.h:89