AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateAcceleratorRequest.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/globalaccelerator/GlobalAcceleratorRequest.h>
10#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
11#include <aws/globalaccelerator/model/IpAddressType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GlobalAccelerator {
17namespace Model {
18
22 public:
23 AWS_GLOBALACCELERATOR_API UpdateAcceleratorRequest() = 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 "UpdateAccelerator"; }
30
31 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
32
33 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
40 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
41 template <typename AcceleratorArnT = Aws::String>
42 void SetAcceleratorArn(AcceleratorArnT&& value) {
43 m_acceleratorArnHasBeenSet = true;
44 m_acceleratorArn = std::forward<AcceleratorArnT>(value);
45 }
46 template <typename AcceleratorArnT = Aws::String>
47 UpdateAcceleratorRequest& WithAcceleratorArn(AcceleratorArnT&& value) {
48 SetAcceleratorArn(std::forward<AcceleratorArnT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
79 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
80 inline void SetIpAddressType(IpAddressType value) {
81 m_ipAddressTypeHasBeenSet = true;
82 m_ipAddressType = value;
83 }
85 SetIpAddressType(value);
86 return *this;
87 }
89
91
102 inline const Aws::Vector<Aws::String>& GetIpAddresses() const { return m_ipAddresses; }
103 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
104 template <typename IpAddressesT = Aws::Vector<Aws::String>>
105 void SetIpAddresses(IpAddressesT&& value) {
106 m_ipAddressesHasBeenSet = true;
107 m_ipAddresses = std::forward<IpAddressesT>(value);
108 }
109 template <typename IpAddressesT = Aws::Vector<Aws::String>>
111 SetIpAddresses(std::forward<IpAddressesT>(value));
112 return *this;
113 }
114 template <typename IpAddressesT = Aws::String>
116 m_ipAddressesHasBeenSet = true;
117 m_ipAddresses.emplace_back(std::forward<IpAddressesT>(value));
118 return *this;
119 }
121
123
128 inline bool GetEnabled() const { return m_enabled; }
129 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
130 inline void SetEnabled(bool value) {
131 m_enabledHasBeenSet = true;
132 m_enabled = value;
133 }
135 SetEnabled(value);
136 return *this;
137 }
139 private:
140 Aws::String m_acceleratorArn;
141
142 Aws::String m_name;
143
144 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
145
146 Aws::Vector<Aws::String> m_ipAddresses;
147
148 bool m_enabled{false};
149 bool m_acceleratorArnHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_ipAddressTypeHasBeenSet = false;
152 bool m_ipAddressesHasBeenSet = false;
153 bool m_enabledHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace GlobalAccelerator
158} // namespace Aws
UpdateAcceleratorRequest & WithIpAddressType(IpAddressType value)
UpdateAcceleratorRequest & WithAcceleratorArn(AcceleratorArnT &&value)
UpdateAcceleratorRequest & WithIpAddresses(IpAddressesT &&value)
UpdateAcceleratorRequest & AddIpAddresses(IpAddressesT &&value)
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLOBALACCELERATOR_API UpdateAcceleratorRequest()=default
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetIpAddresses() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector