AWS SDK for C++  1.9.108
AWS SDK for C++
CloseInstancePublicPortsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CloseInstancePublicPorts"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const PortInfo& GetPortInfo() const{ return m_portInfo; }
42 
46  inline bool PortInfoHasBeenSet() const { return m_portInfoHasBeenSet; }
47 
51  inline void SetPortInfo(const PortInfo& value) { m_portInfoHasBeenSet = true; m_portInfo = value; }
52 
56  inline void SetPortInfo(PortInfo&& value) { m_portInfoHasBeenSet = true; m_portInfo = std::move(value); }
57 
61  inline CloseInstancePublicPortsRequest& WithPortInfo(const PortInfo& value) { SetPortInfo(value); return *this;}
62 
66  inline CloseInstancePublicPortsRequest& WithPortInfo(PortInfo&& value) { SetPortInfo(std::move(value)); return *this;}
67 
68 
72  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
73 
77  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
78 
82  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
83 
87  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
88 
92  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
93 
97  inline CloseInstancePublicPortsRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
98 
102  inline CloseInstancePublicPortsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
103 
107  inline CloseInstancePublicPortsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
108 
109  private:
110 
111  PortInfo m_portInfo;
112  bool m_portInfoHasBeenSet;
113 
114  Aws::String m_instanceName;
115  bool m_instanceNameHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace Lightsail
120 } // namespace Aws
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: CloseInstancePublicPortsRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SetInstanceName
void SetInstanceName(const char *value)
Definition: CloseInstancePublicPortsRequest.h:92
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::PortInfoHasBeenSet
bool PortInfoHasBeenSet() const
Definition: CloseInstancePublicPortsRequest.h:46
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SetPortInfo
void SetPortInfo(PortInfo &&value)
Definition: CloseInstancePublicPortsRequest.h:56
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::WithInstanceName
CloseInstancePublicPortsRequest & WithInstanceName(const char *value)
Definition: CloseInstancePublicPortsRequest.h:107
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: CloseInstancePublicPortsRequest.h:77
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
LightsailRequest.h
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::WithPortInfo
CloseInstancePublicPortsRequest & WithPortInfo(PortInfo &&value)
Definition: CloseInstancePublicPortsRequest.h:66
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::WithInstanceName
CloseInstancePublicPortsRequest & WithInstanceName(const Aws::String &value)
Definition: CloseInstancePublicPortsRequest.h:97
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::GetPortInfo
const PortInfo & GetPortInfo() const
Definition: CloseInstancePublicPortsRequest.h:41
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SetPortInfo
void SetPortInfo(const PortInfo &value)
Definition: CloseInstancePublicPortsRequest.h:51
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: CloseInstancePublicPortsRequest.h:87
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::WithInstanceName
CloseInstancePublicPortsRequest & WithInstanceName(Aws::String &&value)
Definition: CloseInstancePublicPortsRequest.h:102
Aws::Lightsail::Model::CloseInstancePublicPortsRequest
Definition: CloseInstancePublicPortsRequest.h:23
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::CloseInstancePublicPortsRequest
CloseInstancePublicPortsRequest()
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::WithPortInfo
CloseInstancePublicPortsRequest & WithPortInfo(const PortInfo &value)
Definition: CloseInstancePublicPortsRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::PortInfo
Definition: PortInfo.h:36
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: CloseInstancePublicPortsRequest.h:82
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
PortInfo.h
Aws::Lightsail::Model::CloseInstancePublicPortsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CloseInstancePublicPortsRequest.h:31