AWS SDK for C++  1.9.15
AWS SDK for C++
GetInstanceAccessDetailsRequest.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 "GetInstanceAccessDetails"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
42 
46  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
47 
51  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
52 
56  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
57 
61  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
62 
66  inline GetInstanceAccessDetailsRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
67 
71  inline GetInstanceAccessDetailsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
72 
76  inline GetInstanceAccessDetailsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
77 
78 
83  inline const InstanceAccessProtocol& GetProtocol() const{ return m_protocol; }
84 
89  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
90 
95  inline void SetProtocol(const InstanceAccessProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
96 
101  inline void SetProtocol(InstanceAccessProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
102 
107  inline GetInstanceAccessDetailsRequest& WithProtocol(const InstanceAccessProtocol& value) { SetProtocol(value); return *this;}
108 
113  inline GetInstanceAccessDetailsRequest& WithProtocol(InstanceAccessProtocol&& value) { SetProtocol(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_instanceName;
118  bool m_instanceNameHasBeenSet;
119 
120  InstanceAccessProtocol m_protocol;
121  bool m_protocolHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace Lightsail
126 } // namespace Aws
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::WithProtocol
GetInstanceAccessDetailsRequest & WithProtocol(const InstanceAccessProtocol &value)
Definition: GetInstanceAccessDetailsRequest.h:107
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::GetInstanceAccessDetailsRequest
GetInstanceAccessDetailsRequest()
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SetProtocol
void SetProtocol(const InstanceAccessProtocol &value)
Definition: GetInstanceAccessDetailsRequest.h:95
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::WithProtocol
GetInstanceAccessDetailsRequest & WithProtocol(InstanceAccessProtocol &&value)
Definition: GetInstanceAccessDetailsRequest.h:113
LightsailRequest.h
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SetInstanceName
void SetInstanceName(const char *value)
Definition: GetInstanceAccessDetailsRequest.h:61
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::WithInstanceName
GetInstanceAccessDetailsRequest & WithInstanceName(const Aws::String &value)
Definition: GetInstanceAccessDetailsRequest.h:66
Aws::Lightsail::Model::InstanceAccessProtocol
InstanceAccessProtocol
Definition: InstanceAccessProtocol.h:17
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: GetInstanceAccessDetailsRequest.h:46
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: GetInstanceAccessDetailsRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::WithInstanceName
GetInstanceAccessDetailsRequest & WithInstanceName(const char *value)
Definition: GetInstanceAccessDetailsRequest.h:76
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::WithInstanceName
GetInstanceAccessDetailsRequest & WithInstanceName(Aws::String &&value)
Definition: GetInstanceAccessDetailsRequest.h:71
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::GetProtocol
const InstanceAccessProtocol & GetProtocol() const
Definition: GetInstanceAccessDetailsRequest.h:83
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: GetInstanceAccessDetailsRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetInstanceAccessDetailsRequest.h:31
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SetProtocol
void SetProtocol(InstanceAccessProtocol &&value)
Definition: GetInstanceAccessDetailsRequest.h:101
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: GetInstanceAccessDetailsRequest.h:89
InstanceAccessProtocol.h
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: GetInstanceAccessDetailsRequest.h:56
Aws::Lightsail::Model::GetInstanceAccessDetailsRequest
Definition: GetInstanceAccessDetailsRequest.h:23