AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModifyLoadBalancerAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/LoadBalancerAttribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticLoadBalancingv2 {
17namespace Model {
18
22 public:
23 AWS_ELASTICLOADBALANCINGV2_API ModifyLoadBalancerAttributesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyLoadBalancerAttributes"; }
30
31 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
42 inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
43 template <typename LoadBalancerArnT = Aws::String>
44 void SetLoadBalancerArn(LoadBalancerArnT&& value) {
45 m_loadBalancerArnHasBeenSet = true;
46 m_loadBalancerArn = std::forward<LoadBalancerArnT>(value);
47 }
48 template <typename LoadBalancerArnT = Aws::String>
50 SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<LoadBalancerAttribute>& GetAttributes() const { return m_attributes; }
60 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
61 template <typename AttributesT = Aws::Vector<LoadBalancerAttribute>>
62 void SetAttributes(AttributesT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes = std::forward<AttributesT>(value);
65 }
66 template <typename AttributesT = Aws::Vector<LoadBalancerAttribute>>
68 SetAttributes(std::forward<AttributesT>(value));
69 return *this;
70 }
71 template <typename AttributesT = LoadBalancerAttribute>
73 m_attributesHasBeenSet = true;
74 m_attributes.emplace_back(std::forward<AttributesT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_loadBalancerArn;
80
82 bool m_loadBalancerArnHasBeenSet = false;
83 bool m_attributesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ElasticLoadBalancingv2
88} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCINGV2_API ModifyLoadBalancerAttributesRequest()=default
ModifyLoadBalancerAttributesRequest & WithLoadBalancerArn(LoadBalancerArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector