AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutInstancePublicPortsRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/PortInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API PutInstancePublicPortsRequest() = 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 "PutInstancePublicPorts"; }
33
34 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::Vector<PortInfo>& GetPortInfos() const { return m_portInfos; }
45 inline bool PortInfosHasBeenSet() const { return m_portInfosHasBeenSet; }
46 template<typename PortInfosT = Aws::Vector<PortInfo>>
47 void SetPortInfos(PortInfosT&& value) { m_portInfosHasBeenSet = true; m_portInfos = std::forward<PortInfosT>(value); }
48 template<typename PortInfosT = Aws::Vector<PortInfo>>
49 PutInstancePublicPortsRequest& WithPortInfos(PortInfosT&& value) { SetPortInfos(std::forward<PortInfosT>(value)); return *this;}
50 template<typename PortInfosT = PortInfo>
51 PutInstancePublicPortsRequest& AddPortInfos(PortInfosT&& value) { m_portInfosHasBeenSet = true; m_portInfos.emplace_back(std::forward<PortInfosT>(value)); return *this; }
53
55
58 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
59 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
60 template<typename InstanceNameT = Aws::String>
61 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::forward<InstanceNameT>(value); }
62 template<typename InstanceNameT = Aws::String>
63 PutInstancePublicPortsRequest& WithInstanceName(InstanceNameT&& value) { SetInstanceName(std::forward<InstanceNameT>(value)); return *this;}
65 private:
66
67 Aws::Vector<PortInfo> m_portInfos;
68 bool m_portInfosHasBeenSet = false;
69
70 Aws::String m_instanceName;
71 bool m_instanceNameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Lightsail
76} // namespace Aws
PutInstancePublicPortsRequest & WithPortInfos(PortInfosT &&value)
PutInstancePublicPortsRequest & WithInstanceName(InstanceNameT &&value)
PutInstancePublicPortsRequest & AddPortInfos(PortInfosT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API PutInstancePublicPortsRequest()=default
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
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