AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetachLoadBalancerFromSubnetsRequest.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 <utility>
12
13namespace Aws
14{
15namespace ElasticLoadBalancing
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ELASTICLOADBALANCING_API DetachLoadBalancerFromSubnetsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DetachLoadBalancerFromSubnets"; }
36
37 AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetLoadBalancerName() const { return m_loadBalancerName; }
49 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
50 template<typename LoadBalancerNameT = Aws::String>
51 void SetLoadBalancerName(LoadBalancerNameT&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::forward<LoadBalancerNameT>(value); }
52 template<typename LoadBalancerNameT = Aws::String>
53 DetachLoadBalancerFromSubnetsRequest& WithLoadBalancerName(LoadBalancerNameT&& value) { SetLoadBalancerName(std::forward<LoadBalancerNameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
61 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
62 template<typename SubnetsT = Aws::Vector<Aws::String>>
63 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
64 template<typename SubnetsT = Aws::Vector<Aws::String>>
65 DetachLoadBalancerFromSubnetsRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
66 template<typename SubnetsT = Aws::String>
67 DetachLoadBalancerFromSubnetsRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
69 private:
70
71 Aws::String m_loadBalancerName;
72 bool m_loadBalancerNameHasBeenSet = false;
73
75 bool m_subnetsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ElasticLoadBalancing
80} // namespace Aws
AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override
DetachLoadBalancerFromSubnetsRequest & WithLoadBalancerName(LoadBalancerNameT &&value)
AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCING_API DetachLoadBalancerFromSubnetsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector