AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPortInfos(const Aws::Vector<PortInfo>& value) { m_portInfosHasBeenSet = true; m_portInfos = value; }
47 inline void SetPortInfos(Aws::Vector<PortInfo>&& value) { m_portInfosHasBeenSet = true; m_portInfos = std::move(value); }
49 inline PutInstancePublicPortsRequest& WithPortInfos(Aws::Vector<PortInfo>&& value) { SetPortInfos(std::move(value)); return *this;}
50 inline PutInstancePublicPortsRequest& AddPortInfos(const PortInfo& value) { m_portInfosHasBeenSet = true; m_portInfos.push_back(value); return *this; }
51 inline PutInstancePublicPortsRequest& AddPortInfos(PortInfo&& value) { m_portInfosHasBeenSet = true; m_portInfos.push_back(std::move(value)); return *this; }
53
55
58 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
59 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
60 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
61 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
62 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
63 inline PutInstancePublicPortsRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
64 inline PutInstancePublicPortsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
65 inline PutInstancePublicPortsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
67 private:
68
69 Aws::Vector<PortInfo> m_portInfos;
70 bool m_portInfosHasBeenSet = false;
71
72 Aws::String m_instanceName;
73 bool m_instanceNameHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Lightsail
78} // namespace Aws
PutInstancePublicPortsRequest & WithPortInfos(const Aws::Vector< PortInfo > &value)
PutInstancePublicPortsRequest & WithPortInfos(Aws::Vector< PortInfo > &&value)
PutInstancePublicPortsRequest & AddPortInfos(const PortInfo &value)
PutInstancePublicPortsRequest & WithInstanceName(const char *value)
PutInstancePublicPortsRequest & WithInstanceName(Aws::String &&value)
PutInstancePublicPortsRequest & AddPortInfos(PortInfo &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutInstancePublicPortsRequest & WithInstanceName(const Aws::String &value)
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