AWS SDK for C++  1.9.104
AWS SDK for C++
AttachDiskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AttachDisk"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetDiskName() const{ return m_diskName; }
41 
45  inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
46 
50  inline void SetDiskName(const Aws::String& value) { m_diskNameHasBeenSet = true; m_diskName = value; }
51 
55  inline void SetDiskName(Aws::String&& value) { m_diskNameHasBeenSet = true; m_diskName = std::move(value); }
56 
60  inline void SetDiskName(const char* value) { m_diskNameHasBeenSet = true; m_diskName.assign(value); }
61 
65  inline AttachDiskRequest& WithDiskName(const Aws::String& value) { SetDiskName(value); return *this;}
66 
70  inline AttachDiskRequest& WithDiskName(Aws::String&& value) { SetDiskName(std::move(value)); return *this;}
71 
75  inline AttachDiskRequest& WithDiskName(const char* value) { SetDiskName(value); return *this;}
76 
77 
82  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
83 
88  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
89 
94  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
95 
100  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
101 
106  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
107 
112  inline AttachDiskRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
113 
118  inline AttachDiskRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
119 
124  inline AttachDiskRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
125 
126 
130  inline const Aws::String& GetDiskPath() const{ return m_diskPath; }
131 
135  inline bool DiskPathHasBeenSet() const { return m_diskPathHasBeenSet; }
136 
140  inline void SetDiskPath(const Aws::String& value) { m_diskPathHasBeenSet = true; m_diskPath = value; }
141 
145  inline void SetDiskPath(Aws::String&& value) { m_diskPathHasBeenSet = true; m_diskPath = std::move(value); }
146 
150  inline void SetDiskPath(const char* value) { m_diskPathHasBeenSet = true; m_diskPath.assign(value); }
151 
155  inline AttachDiskRequest& WithDiskPath(const Aws::String& value) { SetDiskPath(value); return *this;}
156 
160  inline AttachDiskRequest& WithDiskPath(Aws::String&& value) { SetDiskPath(std::move(value)); return *this;}
161 
165  inline AttachDiskRequest& WithDiskPath(const char* value) { SetDiskPath(value); return *this;}
166 
167  private:
168 
169  Aws::String m_diskName;
170  bool m_diskNameHasBeenSet;
171 
172  Aws::String m_instanceName;
173  bool m_instanceNameHasBeenSet;
174 
175  Aws::String m_diskPath;
176  bool m_diskPathHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace Lightsail
181 } // namespace Aws
Aws::Lightsail::Model::AttachDiskRequest::WithDiskName
AttachDiskRequest & WithDiskName(const Aws::String &value)
Definition: AttachDiskRequest.h:65
Aws::Lightsail::Model::AttachDiskRequest::WithInstanceName
AttachDiskRequest & WithInstanceName(Aws::String &&value)
Definition: AttachDiskRequest.h:118
Aws::Lightsail::Model::AttachDiskRequest::WithDiskName
AttachDiskRequest & WithDiskName(const char *value)
Definition: AttachDiskRequest.h:75
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::AttachDiskRequest
Definition: AttachDiskRequest.h:22
Aws::Lightsail::Model::AttachDiskRequest::SetDiskName
void SetDiskName(Aws::String &&value)
Definition: AttachDiskRequest.h:55
Aws::Lightsail::Model::AttachDiskRequest::AttachDiskRequest
AttachDiskRequest()
Aws::Lightsail::Model::AttachDiskRequest::WithInstanceName
AttachDiskRequest & WithInstanceName(const char *value)
Definition: AttachDiskRequest.h:124
Aws::Lightsail::Model::AttachDiskRequest::SetDiskPath
void SetDiskPath(const char *value)
Definition: AttachDiskRequest.h:150
Aws::Lightsail::Model::AttachDiskRequest::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: AttachDiskRequest.h:94
Aws::Lightsail::Model::AttachDiskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::AttachDiskRequest::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: AttachDiskRequest.h:88
Aws::Lightsail::Model::AttachDiskRequest::SetInstanceName
void SetInstanceName(const char *value)
Definition: AttachDiskRequest.h:106
Aws::Lightsail::Model::AttachDiskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachDiskRequest.h:30
Aws::Lightsail::Model::AttachDiskRequest::SetDiskName
void SetDiskName(const char *value)
Definition: AttachDiskRequest.h:60
Aws::Lightsail::Model::AttachDiskRequest::SetDiskPath
void SetDiskPath(Aws::String &&value)
Definition: AttachDiskRequest.h:145
LightsailRequest.h
Aws::Lightsail::Model::AttachDiskRequest::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: AttachDiskRequest.h:82
Aws::Lightsail::Model::AttachDiskRequest::WithDiskPath
AttachDiskRequest & WithDiskPath(Aws::String &&value)
Definition: AttachDiskRequest.h:160
Aws::Lightsail::Model::AttachDiskRequest::WithInstanceName
AttachDiskRequest & WithInstanceName(const Aws::String &value)
Definition: AttachDiskRequest.h:112
Aws::Lightsail::Model::AttachDiskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::AttachDiskRequest::WithDiskName
AttachDiskRequest & WithDiskName(Aws::String &&value)
Definition: AttachDiskRequest.h:70
Aws::Lightsail::Model::AttachDiskRequest::WithDiskPath
AttachDiskRequest & WithDiskPath(const char *value)
Definition: AttachDiskRequest.h:165
Aws::Lightsail::Model::AttachDiskRequest::WithDiskPath
AttachDiskRequest & WithDiskPath(const Aws::String &value)
Definition: AttachDiskRequest.h:155
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::AttachDiskRequest::SetDiskName
void SetDiskName(const Aws::String &value)
Definition: AttachDiskRequest.h:50
AWSString.h
Aws::Lightsail::Model::AttachDiskRequest::GetDiskName
const Aws::String & GetDiskName() const
Definition: AttachDiskRequest.h:40
Aws::Lightsail::Model::AttachDiskRequest::SetDiskPath
void SetDiskPath(const Aws::String &value)
Definition: AttachDiskRequest.h:140
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AttachDiskRequest::DiskPathHasBeenSet
bool DiskPathHasBeenSet() const
Definition: AttachDiskRequest.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AttachDiskRequest::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: AttachDiskRequest.h:100
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AttachDiskRequest::GetDiskPath
const Aws::String & GetDiskPath() const
Definition: AttachDiskRequest.h:130
Aws::Lightsail::Model::AttachDiskRequest::DiskNameHasBeenSet
bool DiskNameHasBeenSet() const
Definition: AttachDiskRequest.h:45