AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateLoadBalancerAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateLoadBalancerAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
43 
48  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
49 
54  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
55 
60  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
61 
66  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
67 
72  inline UpdateLoadBalancerAttributeRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
73 
78  inline UpdateLoadBalancerAttributeRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
79 
84  inline UpdateLoadBalancerAttributeRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
85 
86 
90  inline const LoadBalancerAttributeName& GetAttributeName() const{ return m_attributeName; }
91 
95  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
96 
100  inline void SetAttributeName(const LoadBalancerAttributeName& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
101 
105  inline void SetAttributeName(LoadBalancerAttributeName&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
106 
110  inline UpdateLoadBalancerAttributeRequest& WithAttributeName(const LoadBalancerAttributeName& value) { SetAttributeName(value); return *this;}
111 
115  inline UpdateLoadBalancerAttributeRequest& WithAttributeName(LoadBalancerAttributeName&& value) { SetAttributeName(std::move(value)); return *this;}
116 
117 
121  inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
122 
126  inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
127 
131  inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
132 
136  inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
137 
141  inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
142 
146  inline UpdateLoadBalancerAttributeRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
147 
151  inline UpdateLoadBalancerAttributeRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
152 
156  inline UpdateLoadBalancerAttributeRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
157 
158  private:
159 
160  Aws::String m_loadBalancerName;
161  bool m_loadBalancerNameHasBeenSet;
162 
163  LoadBalancerAttributeName m_attributeName;
164  bool m_attributeNameHasBeenSet;
165 
166  Aws::String m_attributeValue;
167  bool m_attributeValueHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace Lightsail
172 } // namespace Aws
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::UpdateLoadBalancerAttributeRequest
UpdateLoadBalancerAttributeRequest()
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest
Definition: UpdateLoadBalancerAttributeRequest.h:23
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:60
LoadBalancerAttributeName.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: UpdateLoadBalancerAttributeRequest.h:54
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::GetAttributeValue
const Aws::String & GetAttributeValue() const
Definition: UpdateLoadBalancerAttributeRequest.h:121
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithAttributeName
UpdateLoadBalancerAttributeRequest & WithAttributeName(const LoadBalancerAttributeName &value)
Definition: UpdateLoadBalancerAttributeRequest.h:110
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithAttributeValue
UpdateLoadBalancerAttributeRequest & WithAttributeValue(const char *value)
Definition: UpdateLoadBalancerAttributeRequest.h:156
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLoadBalancerAttributeRequest.h:31
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetAttributeName
void SetAttributeName(LoadBalancerAttributeName &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:105
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: UpdateLoadBalancerAttributeRequest.h:66
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithLoadBalancerName
UpdateLoadBalancerAttributeRequest & WithLoadBalancerName(const Aws::String &value)
Definition: UpdateLoadBalancerAttributeRequest.h:72
LightsailRequest.h
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetAttributeValue
void SetAttributeValue(Aws::String &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:136
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithAttributeValue
UpdateLoadBalancerAttributeRequest & WithAttributeValue(Aws::String &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:151
Aws::Lightsail::Model::LoadBalancerAttributeName
LoadBalancerAttributeName
Definition: LoadBalancerAttributeName.h:17
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: UpdateLoadBalancerAttributeRequest.h:48
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithAttributeName
UpdateLoadBalancerAttributeRequest & WithAttributeName(LoadBalancerAttributeName &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:115
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithAttributeValue
UpdateLoadBalancerAttributeRequest & WithAttributeValue(const Aws::String &value)
Definition: UpdateLoadBalancerAttributeRequest.h:146
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::GetAttributeName
const LoadBalancerAttributeName & GetAttributeName() const
Definition: UpdateLoadBalancerAttributeRequest.h:90
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Lightsail_EXPORTS.h
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetAttributeValue
void SetAttributeValue(const Aws::String &value)
Definition: UpdateLoadBalancerAttributeRequest.h:131
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetAttributeValue
void SetAttributeValue(const char *value)
Definition: UpdateLoadBalancerAttributeRequest.h:141
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::SetAttributeName
void SetAttributeName(const LoadBalancerAttributeName &value)
Definition: UpdateLoadBalancerAttributeRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: UpdateLoadBalancerAttributeRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithLoadBalancerName
UpdateLoadBalancerAttributeRequest & WithLoadBalancerName(const char *value)
Definition: UpdateLoadBalancerAttributeRequest.h:84
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::AttributeValueHasBeenSet
bool AttributeValueHasBeenSet() const
Definition: UpdateLoadBalancerAttributeRequest.h:126
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: UpdateLoadBalancerAttributeRequest.h:95
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::UpdateLoadBalancerAttributeRequest::WithLoadBalancerName
UpdateLoadBalancerAttributeRequest & WithLoadBalancerName(Aws::String &&value)
Definition: UpdateLoadBalancerAttributeRequest.h:78