AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterInstancesWithLoadBalancerRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/elasticloadbalancing/ElasticLoadBalancingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancing/model/Instance.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticLoadBalancing
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICLOADBALANCING_API RegisterInstancesWithLoadBalancerRequest();
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 "RegisterInstancesWithLoadBalancer"; }
37
38 AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
50 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
51 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
52 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
53 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
56 inline RegisterInstancesWithLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
58
60
63 inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
64 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
65 inline void SetInstances(const Aws::Vector<Instance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
66 inline void SetInstances(Aws::Vector<Instance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
69 inline RegisterInstancesWithLoadBalancerRequest& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
70 inline RegisterInstancesWithLoadBalancerRequest& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
72 private:
73
74 Aws::String m_loadBalancerName;
75 bool m_loadBalancerNameHasBeenSet = false;
76
77 Aws::Vector<Instance> m_instances;
78 bool m_instancesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElasticLoadBalancing
83} // namespace Aws
AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RegisterInstancesWithLoadBalancerRequest & WithInstances(Aws::Vector< Instance > &&value)
RegisterInstancesWithLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
RegisterInstancesWithLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
RegisterInstancesWithLoadBalancerRequest & AddInstances(const Instance &value)
AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override
RegisterInstancesWithLoadBalancerRequest & WithInstances(const Aws::Vector< Instance > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector