AWS SDK for C++  1.9.109
AWS SDK for C++
CreateLoadBalancerPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancing
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
49 
53  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
54 
58  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
59 
63  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
64 
68  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
69 
73  inline CreateLoadBalancerPolicyRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
74 
78  inline CreateLoadBalancerPolicyRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
79 
83  inline CreateLoadBalancerPolicyRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
84 
85 
90  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
91 
96  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
97 
102  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
103 
108  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
109 
114  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
115 
120  inline CreateLoadBalancerPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
121 
126  inline CreateLoadBalancerPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
127 
132  inline CreateLoadBalancerPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
133 
134 
139  inline const Aws::String& GetPolicyTypeName() const{ return m_policyTypeName; }
140 
145  inline bool PolicyTypeNameHasBeenSet() const { return m_policyTypeNameHasBeenSet; }
146 
151  inline void SetPolicyTypeName(const Aws::String& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = value; }
152 
157  inline void SetPolicyTypeName(Aws::String&& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = std::move(value); }
158 
163  inline void SetPolicyTypeName(const char* value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName.assign(value); }
164 
169  inline CreateLoadBalancerPolicyRequest& WithPolicyTypeName(const Aws::String& value) { SetPolicyTypeName(value); return *this;}
170 
175  inline CreateLoadBalancerPolicyRequest& WithPolicyTypeName(Aws::String&& value) { SetPolicyTypeName(std::move(value)); return *this;}
176 
181  inline CreateLoadBalancerPolicyRequest& WithPolicyTypeName(const char* value) { SetPolicyTypeName(value); return *this;}
182 
183 
187  inline const Aws::Vector<PolicyAttribute>& GetPolicyAttributes() const{ return m_policyAttributes; }
188 
192  inline bool PolicyAttributesHasBeenSet() const { return m_policyAttributesHasBeenSet; }
193 
197  inline void SetPolicyAttributes(const Aws::Vector<PolicyAttribute>& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes = value; }
198 
202  inline void SetPolicyAttributes(Aws::Vector<PolicyAttribute>&& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes = std::move(value); }
203 
207  inline CreateLoadBalancerPolicyRequest& WithPolicyAttributes(const Aws::Vector<PolicyAttribute>& value) { SetPolicyAttributes(value); return *this;}
208 
212  inline CreateLoadBalancerPolicyRequest& WithPolicyAttributes(Aws::Vector<PolicyAttribute>&& value) { SetPolicyAttributes(std::move(value)); return *this;}
213 
217  inline CreateLoadBalancerPolicyRequest& AddPolicyAttributes(const PolicyAttribute& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes.push_back(value); return *this; }
218 
222  inline CreateLoadBalancerPolicyRequest& AddPolicyAttributes(PolicyAttribute&& value) { m_policyAttributesHasBeenSet = true; m_policyAttributes.push_back(std::move(value)); return *this; }
223 
224  private:
225 
226  Aws::String m_loadBalancerName;
227  bool m_loadBalancerNameHasBeenSet;
228 
229  Aws::String m_policyName;
230  bool m_policyNameHasBeenSet;
231 
232  Aws::String m_policyTypeName;
233  bool m_policyTypeNameHasBeenSet;
234 
235  Aws::Vector<PolicyAttribute> m_policyAttributes;
236  bool m_policyAttributesHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace ElasticLoadBalancing
241 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::AddPolicyAttributes
CreateLoadBalancerPolicyRequest & AddPolicyAttributes(PolicyAttribute &&value)
Definition: CreateLoadBalancerPolicyRequest.h:222
Aws::ElasticLoadBalancing::ElasticLoadBalancingRequest
Definition: ElasticLoadBalancingRequest.h:17
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyAttributes
void SetPolicyAttributes(const Aws::Vector< PolicyAttribute > &value)
Definition: CreateLoadBalancerPolicyRequest.h:197
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:63
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::GetPolicyTypeName
const Aws::String & GetPolicyTypeName() const
Definition: CreateLoadBalancerPolicyRequest.h:139
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyAttributes
CreateLoadBalancerPolicyRequest & WithPolicyAttributes(Aws::Vector< PolicyAttribute > &&value)
Definition: CreateLoadBalancerPolicyRequest.h:212
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:108
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyTypeName
void SetPolicyTypeName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:163
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticLoadBalancing::Model::PolicyAttribute
Definition: PolicyAttribute.h:32
AWSVector.h
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest
Definition: CreateLoadBalancerPolicyRequest.h:28
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::PolicyAttributesHasBeenSet
bool PolicyAttributesHasBeenSet() const
Definition: CreateLoadBalancerPolicyRequest.h:192
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyAttributes
CreateLoadBalancerPolicyRequest & WithPolicyAttributes(const Aws::Vector< PolicyAttribute > &value)
Definition: CreateLoadBalancerPolicyRequest.h:207
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: CreateLoadBalancerPolicyRequest.h:53
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithLoadBalancerName
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:73
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: CreateLoadBalancerPolicyRequest.h:96
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyTypeName
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:169
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: CreateLoadBalancerPolicyRequest.h:48
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyTypeName
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:175
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyAttributes
void SetPolicyAttributes(Aws::Vector< PolicyAttribute > &&value)
Definition: CreateLoadBalancerPolicyRequest.h:202
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:102
AWSString.h
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyTypeName
CreateLoadBalancerPolicyRequest & WithPolicyTypeName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:181
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:114
PolicyAttribute.h
AWS_ELASTICLOADBALANCING_API
#define AWS_ELASTICLOADBALANCING_API
Definition: ElasticLoadBalancing_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithLoadBalancerName
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:78
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: CreateLoadBalancerPolicyRequest.h:90
ElasticLoadBalancing_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyName
CreateLoadBalancerPolicyRequest & WithPolicyName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:132
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyName
CreateLoadBalancerPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:126
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyTypeName
void SetPolicyTypeName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:151
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::AddPolicyAttributes
CreateLoadBalancerPolicyRequest & AddPolicyAttributes(const PolicyAttribute &value)
Definition: CreateLoadBalancerPolicyRequest.h:217
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::PolicyTypeNameHasBeenSet
bool PolicyTypeNameHasBeenSet() const
Definition: CreateLoadBalancerPolicyRequest.h:145
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:68
ElasticLoadBalancingRequest.h
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::GetPolicyAttributes
const Aws::Vector< PolicyAttribute > & GetPolicyAttributes() const
Definition: CreateLoadBalancerPolicyRequest.h:187
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithLoadBalancerName
CreateLoadBalancerPolicyRequest & WithLoadBalancerName(const char *value)
Definition: CreateLoadBalancerPolicyRequest.h:83
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLoadBalancerPolicyRequest.h:36
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:58
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::CreateLoadBalancerPolicyRequest
CreateLoadBalancerPolicyRequest()
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::SetPolicyTypeName
void SetPolicyTypeName(Aws::String &&value)
Definition: CreateLoadBalancerPolicyRequest.h:157
Aws::ElasticLoadBalancing::Model::CreateLoadBalancerPolicyRequest::WithPolicyName
CreateLoadBalancerPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: CreateLoadBalancerPolicyRequest.h:120