AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttachDiskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Lightsail {
15namespace Model {
16
20 public:
21 AWS_LIGHTSAIL_API AttachDiskRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AttachDisk"; }
28
29 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetDiskName() const { return m_diskName; }
38 inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
39 template <typename DiskNameT = Aws::String>
40 void SetDiskName(DiskNameT&& value) {
41 m_diskNameHasBeenSet = true;
42 m_diskName = std::forward<DiskNameT>(value);
43 }
44 template <typename DiskNameT = Aws::String>
45 AttachDiskRequest& WithDiskName(DiskNameT&& value) {
46 SetDiskName(std::forward<DiskNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
57 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
58 template <typename InstanceNameT = Aws::String>
59 void SetInstanceName(InstanceNameT&& value) {
60 m_instanceNameHasBeenSet = true;
61 m_instanceName = std::forward<InstanceNameT>(value);
62 }
63 template <typename InstanceNameT = Aws::String>
64 AttachDiskRequest& WithInstanceName(InstanceNameT&& value) {
65 SetInstanceName(std::forward<InstanceNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDiskPath() const { return m_diskPath; }
75 inline bool DiskPathHasBeenSet() const { return m_diskPathHasBeenSet; }
76 template <typename DiskPathT = Aws::String>
77 void SetDiskPath(DiskPathT&& value) {
78 m_diskPathHasBeenSet = true;
79 m_diskPath = std::forward<DiskPathT>(value);
80 }
81 template <typename DiskPathT = Aws::String>
82 AttachDiskRequest& WithDiskPath(DiskPathT&& value) {
83 SetDiskPath(std::forward<DiskPathT>(value));
84 return *this;
85 }
87
89
94 inline bool GetAutoMounting() const { return m_autoMounting; }
95 inline bool AutoMountingHasBeenSet() const { return m_autoMountingHasBeenSet; }
96 inline void SetAutoMounting(bool value) {
97 m_autoMountingHasBeenSet = true;
98 m_autoMounting = value;
99 }
101 SetAutoMounting(value);
102 return *this;
103 }
105 private:
106 Aws::String m_diskName;
107
108 Aws::String m_instanceName;
109
110 Aws::String m_diskPath;
111
112 bool m_autoMounting{false};
113 bool m_diskNameHasBeenSet = false;
114 bool m_instanceNameHasBeenSet = false;
115 bool m_diskPathHasBeenSet = false;
116 bool m_autoMountingHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Lightsail
121} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetInstanceName() const
AttachDiskRequest & WithInstanceName(InstanceNameT &&value)
const Aws::String & GetDiskName() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AttachDiskRequest & WithDiskPath(DiskPathT &&value)
const Aws::String & GetDiskPath() const
AttachDiskRequest & WithDiskName(DiskNameT &&value)
AttachDiskRequest & WithAutoMounting(bool value)
AWS_LIGHTSAIL_API AttachDiskRequest()=default
void SetInstanceName(InstanceNameT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String