AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPortInfo(const PortInfo& value) { m_portInfoHasBeenSet = true; m_portInfo = value; }
45 inline void SetPortInfo(PortInfo&& value) { m_portInfoHasBeenSet = true; m_portInfo = std::move(value); }
46 inline OpenInstancePublicPortsRequest& WithPortInfo(const PortInfo& value) { SetPortInfo(value); return *this;}
47 inline OpenInstancePublicPortsRequest& WithPortInfo(PortInfo&& value) { SetPortInfo(std::move(value)); return *this;}
49
51
54 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
55 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
56 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
57 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
58 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
59 inline OpenInstancePublicPortsRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
60 inline OpenInstancePublicPortsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
61 inline OpenInstancePublicPortsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
63 private:
64
65 PortInfo m_portInfo;
66 bool m_portInfoHasBeenSet = false;
67
68 Aws::String m_instanceName;
69 bool m_instanceNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Lightsail
74} // namespace Aws
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
OpenInstancePublicPortsRequest & WithPortInfo(const PortInfo &value)
OpenInstancePublicPortsRequest & WithPortInfo(PortInfo &&value)
OpenInstancePublicPortsRequest & WithInstanceName(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OpenInstancePublicPortsRequest & WithInstanceName(Aws::String &&value)
OpenInstancePublicPortsRequest & WithInstanceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String