AWS SDK for C++  1.9.105
AWS SDK for C++
AttachInstancesToLoadBalancerRequest.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 "AttachInstancesToLoadBalancer"; }
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 AttachInstancesToLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
67 
71  inline AttachInstancesToLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
72 
76  inline AttachInstancesToLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
77 
78 
86  inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
87 
95  inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
96 
104  inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
105 
113  inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
114 
122  inline AttachInstancesToLoadBalancerRequest& WithInstanceNames(const Aws::Vector<Aws::String>& value) { SetInstanceNames(value); return *this;}
123 
131  inline AttachInstancesToLoadBalancerRequest& WithInstanceNames(Aws::Vector<Aws::String>&& value) { SetInstanceNames(std::move(value)); return *this;}
132 
140  inline AttachInstancesToLoadBalancerRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
141 
149  inline AttachInstancesToLoadBalancerRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
150 
158  inline AttachInstancesToLoadBalancerRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
159 
160  private:
161 
162  Aws::String m_loadBalancerName;
163  bool m_loadBalancerNameHasBeenSet;
164 
165  Aws::Vector<Aws::String> m_instanceNames;
166  bool m_instanceNamesHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace Lightsail
171 } // namespace Aws
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SetInstanceNames
void SetInstanceNames(const Aws::Vector< Aws::String > &value)
Definition: AttachInstancesToLoadBalancerRequest.h:104
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::WithLoadBalancerName
AttachInstancesToLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
Definition: AttachInstancesToLoadBalancerRequest.h:66
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::AddInstanceNames
AttachInstancesToLoadBalancerRequest & AddInstanceNames(const Aws::String &value)
Definition: AttachInstancesToLoadBalancerRequest.h:140
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::InstanceNamesHasBeenSet
bool InstanceNamesHasBeenSet() const
Definition: AttachInstancesToLoadBalancerRequest.h:95
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::WithInstanceNames
AttachInstancesToLoadBalancerRequest & WithInstanceNames(Aws::Vector< Aws::String > &&value)
Definition: AttachInstancesToLoadBalancerRequest.h:131
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: AttachInstancesToLoadBalancerRequest.h:61
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: AttachInstancesToLoadBalancerRequest.h:46
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::AttachInstancesToLoadBalancerRequest
AttachInstancesToLoadBalancerRequest()
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::WithInstanceNames
AttachInstancesToLoadBalancerRequest & WithInstanceNames(const Aws::Vector< Aws::String > &value)
Definition: AttachInstancesToLoadBalancerRequest.h:122
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SetInstanceNames
void SetInstanceNames(Aws::Vector< Aws::String > &&value)
Definition: AttachInstancesToLoadBalancerRequest.h:113
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::AddInstanceNames
AttachInstancesToLoadBalancerRequest & AddInstanceNames(Aws::String &&value)
Definition: AttachInstancesToLoadBalancerRequest.h:149
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: AttachInstancesToLoadBalancerRequest.h:56
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::GetInstanceNames
const Aws::Vector< Aws::String > & GetInstanceNames() const
Definition: AttachInstancesToLoadBalancerRequest.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::WithLoadBalancerName
AttachInstancesToLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
Definition: AttachInstancesToLoadBalancerRequest.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::AddInstanceNames
AttachInstancesToLoadBalancerRequest & AddInstanceNames(const char *value)
Definition: AttachInstancesToLoadBalancerRequest.h:158
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: AttachInstancesToLoadBalancerRequest.h:41
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::WithLoadBalancerName
AttachInstancesToLoadBalancerRequest & WithLoadBalancerName(const char *value)
Definition: AttachInstancesToLoadBalancerRequest.h:76
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: AttachInstancesToLoadBalancerRequest.h:51
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachInstancesToLoadBalancerRequest.h:31
Aws::Lightsail::Model::AttachInstancesToLoadBalancerRequest
Definition: AttachInstancesToLoadBalancerRequest.h:23