AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetInstanceAccessDetailsRequest.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/AWSString.h>
10#include <aws/lightsail/model/InstanceAccessProtocol.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace 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_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
43 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
44 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
45 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
46 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
47 inline GetInstanceAccessDetailsRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
48 inline GetInstanceAccessDetailsRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
49 inline GetInstanceAccessDetailsRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
51
53
57 inline const InstanceAccessProtocol& GetProtocol() const{ return m_protocol; }
58 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
59 inline void SetProtocol(const InstanceAccessProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
60 inline void SetProtocol(InstanceAccessProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
62 inline GetInstanceAccessDetailsRequest& WithProtocol(InstanceAccessProtocol&& value) { SetProtocol(std::move(value)); return *this;}
64 private:
65
66 Aws::String m_instanceName;
67 bool m_instanceNameHasBeenSet = false;
68
69 InstanceAccessProtocol m_protocol;
70 bool m_protocolHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Lightsail
75} // namespace Aws
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetInstanceAccessDetailsRequest & WithInstanceName(const char *value)
GetInstanceAccessDetailsRequest & WithInstanceName(Aws::String &&value)
GetInstanceAccessDetailsRequest & WithInstanceName(const Aws::String &value)
GetInstanceAccessDetailsRequest & WithProtocol(const InstanceAccessProtocol &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetInstanceAccessDetailsRequest & WithProtocol(InstanceAccessProtocol &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String