AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateAcceleratorRequest.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/globalaccelerator/model/IpAddressType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GlobalAccelerator
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLOBALACCELERATOR_API UpdateAcceleratorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccelerator"; }
33
34 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
35
36 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
44 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
45 template<typename AcceleratorArnT = Aws::String>
46 void SetAcceleratorArn(AcceleratorArnT&& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = std::forward<AcceleratorArnT>(value); }
47 template<typename AcceleratorArnT = Aws::String>
48 UpdateAcceleratorRequest& WithAcceleratorArn(AcceleratorArnT&& value) { SetAcceleratorArn(std::forward<AcceleratorArnT>(value)); return *this;}
50
52
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 UpdateAcceleratorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
70 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
71 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
72 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
75
77
80 inline const Aws::Vector<Aws::String>& GetIpAddresses() const { return m_ipAddresses; }
81 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
82 template<typename IpAddressesT = Aws::Vector<Aws::String>>
83 void SetIpAddresses(IpAddressesT&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = std::forward<IpAddressesT>(value); }
84 template<typename IpAddressesT = Aws::Vector<Aws::String>>
85 UpdateAcceleratorRequest& WithIpAddresses(IpAddressesT&& value) { SetIpAddresses(std::forward<IpAddressesT>(value)); return *this;}
86 template<typename IpAddressesT = Aws::String>
87 UpdateAcceleratorRequest& AddIpAddresses(IpAddressesT&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.emplace_back(std::forward<IpAddressesT>(value)); return *this; }
89
91
96 inline bool GetEnabled() const { return m_enabled; }
97 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
98 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
99 inline UpdateAcceleratorRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
101 private:
102
103 Aws::String m_acceleratorArn;
104 bool m_acceleratorArnHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
110 bool m_ipAddressTypeHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_ipAddresses;
113 bool m_ipAddressesHasBeenSet = false;
114
115 bool m_enabled{false};
116 bool m_enabledHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GlobalAccelerator
121} // 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