AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachInstancesFromLoadBalancerRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace 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_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
43 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
44 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
45 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
46 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
49 inline DetachInstancesFromLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
58 inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
59 inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
60 inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
63 inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
64 inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
65 inline DetachInstancesFromLoadBalancerRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
67 private:
68
69 Aws::String m_loadBalancerName;
70 bool m_loadBalancerNameHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_instanceNames;
73 bool m_instanceNamesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Lightsail
78} // namespace Aws
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(const char *value)
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(const char *value)
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(Aws::String &&value)
DetachInstancesFromLoadBalancerRequest & WithInstanceNames(const Aws::Vector< Aws::String > &value)
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
DetachInstancesFromLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
DetachInstancesFromLoadBalancerRequest & AddInstanceNames(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachInstancesFromLoadBalancerRequest & WithInstanceNames(Aws::Vector< Aws::String > &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector