AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpenInstancePublicPortsRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/model/PortInfo.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API OpenInstancePublicPortsRequest() = default;
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 "OpenInstancePublicPorts"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const PortInfo& GetPortInfo() const { return m_portInfo; }
43 inline bool PortInfoHasBeenSet() const { return m_portInfoHasBeenSet; }
44 template<typename PortInfoT = PortInfo>
45 void SetPortInfo(PortInfoT&& value) { m_portInfoHasBeenSet = true; m_portInfo = std::forward<PortInfoT>(value); }
46 template<typename PortInfoT = PortInfo>
47 OpenInstancePublicPortsRequest& WithPortInfo(PortInfoT&& value) { SetPortInfo(std::forward<PortInfoT>(value)); return *this;}
49
51
54 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
55 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
56 template<typename InstanceNameT = Aws::String>
57 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::forward<InstanceNameT>(value); }
58 template<typename InstanceNameT = Aws::String>
59 OpenInstancePublicPortsRequest& WithInstanceName(InstanceNameT&& value) { SetInstanceName(std::forward<InstanceNameT>(value)); return *this;}
61 private:
62
63 PortInfo m_portInfo;
64 bool m_portInfoHasBeenSet = false;
65
66 Aws::String m_instanceName;
67 bool m_instanceNameHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Lightsail
72} // namespace Aws
OpenInstancePublicPortsRequest & WithPortInfo(PortInfoT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
OpenInstancePublicPortsRequest & WithInstanceName(InstanceNameT &&value)
AWS_LIGHTSAIL_API OpenInstancePublicPortsRequest()=default
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String