AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLoadBalancerPolicyRequest.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/PolicyAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticLoadBalancing
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICLOADBALANCING_API CreateLoadBalancerPolicyRequest();
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 "CreateLoadBalancerPolicy"; }
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); }
55 inline CreateLoadBalancerPolicyRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
56 inline CreateLoadBalancerPolicyRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
58
60
64 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
65 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
66 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
67 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
68 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
69 inline CreateLoadBalancerPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
70 inline CreateLoadBalancerPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
71 inline CreateLoadBalancerPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
73
75
79 inline const Aws::String& GetPolicyTypeName() const{ return m_policyTypeName; }
80 inline bool PolicyTypeNameHasBeenSet() const { return m_policyTypeNameHasBeenSet; }
81 inline void SetPolicyTypeName(const Aws::String& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = value; }
82 inline void SetPolicyTypeName(Aws::String&& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = std::move(value); }
83 inline void SetPolicyTypeName(const char* value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName.assign(value); }
85 inline CreateLoadBalancerPolicyRequest& WithPolicyTypeName(Aws::String&& value) { SetPolicyTypeName(std::move(value)); return *this;}
86 inline CreateLoadBalancerPolicyRequest& WithPolicyTypeName(const char* value) { SetPolicyTypeName(value); return *this;}
88
90
93 inline const Aws::Vector<PolicyAttribute>& GetPolicyAttributes() const{ return m_policyAttributes; }
94 inline bool PolicyAttributesHasBeenSet() const { return m_policyAttributesHasBeenSet; }
95 inline void SetPolicyAttributes(const Aws::Vector<PolicyAttribute>& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes = value; }
96 inline void SetPolicyAttributes(Aws::Vector<PolicyAttribute>&& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes = std::move(value); }
99 inline CreateLoadBalancerPolicyRequest& AddPolicyAttributes(const PolicyAttribute& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes.push_back(value); return *this; }
100 inline CreateLoadBalancerPolicyRequest& AddPolicyAttributes(PolicyAttribute&& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_loadBalancerName;
105 bool m_loadBalancerNameHasBeenSet = false;
106
107 Aws::String m_policyName;
108 bool m_policyNameHasBeenSet = false;
109
110 Aws::String m_policyTypeName;
111 bool m_policyTypeNameHasBeenSet = false;
112
113 Aws::Vector<PolicyAttribute> m_policyAttributes;
114 bool m_policyAttributesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ElasticLoadBalancing
119} // namespace Aws
AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override
CreateLoadBalancerPolicyRequest & WithPolicyAttributes(Aws::Vector< PolicyAttribute > &&value)
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(const Aws::String &value)
CreateLoadBalancerPolicyRequest & AddPolicyAttributes(const PolicyAttribute &value)
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(const Aws::String &value)
CreateLoadBalancerPolicyRequest & WithPolicyAttributes(const Aws::Vector< PolicyAttribute > &value)
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(Aws::String &&value)
CreateLoadBalancerPolicyRequest & WithPolicyName(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(const char *value)
CreateLoadBalancerPolicyRequest & WithPolicyName(const char *value)
CreateLoadBalancerPolicyRequest & AddPolicyAttributes(PolicyAttribute &&value)
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(const char *value)
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(Aws::String &&value)
CreateLoadBalancerPolicyRequest & WithPolicyName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector