AWS SDK for C++  1.9.94
AWS SDK for C++
UpdateVolumeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace OpsWorks
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 "UpdateVolume"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
41 
45  inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
46 
50  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
51 
55  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
56 
60  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
61 
65  inline UpdateVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
66 
70  inline UpdateVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
71 
75  inline UpdateVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
76 
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline UpdateVolumeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline UpdateVolumeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 
116  inline UpdateVolumeRequest& WithName(const char* value) { SetName(value); return *this;}
117 
118 
122  inline const Aws::String& GetMountPoint() const{ return m_mountPoint; }
123 
127  inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
128 
132  inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
133 
137  inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::move(value); }
138 
142  inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
143 
147  inline UpdateVolumeRequest& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
148 
152  inline UpdateVolumeRequest& WithMountPoint(Aws::String&& value) { SetMountPoint(std::move(value)); return *this;}
153 
157  inline UpdateVolumeRequest& WithMountPoint(const char* value) { SetMountPoint(value); return *this;}
158 
159  private:
160 
161  Aws::String m_volumeId;
162  bool m_volumeIdHasBeenSet;
163 
164  Aws::String m_name;
165  bool m_nameHasBeenSet;
166 
167  Aws::String m_mountPoint;
168  bool m_mountPointHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace OpsWorks
173 } // namespace Aws
Aws::OpsWorks::Model::UpdateVolumeRequest::MountPointHasBeenSet
bool MountPointHasBeenSet() const
Definition: UpdateVolumeRequest.h:127
Aws::OpsWorks::Model::UpdateVolumeRequest::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: UpdateVolumeRequest.h:50
Aws::OpsWorks::Model::UpdateVolumeRequest::WithName
UpdateVolumeRequest & WithName(const Aws::String &value)
Definition: UpdateVolumeRequest.h:106
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::UpdateVolumeRequest::GetMountPoint
const Aws::String & GetMountPoint() const
Definition: UpdateVolumeRequest.h:122
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::UpdateVolumeRequest::WithName
UpdateVolumeRequest & WithName(Aws::String &&value)
Definition: UpdateVolumeRequest.h:111
Aws::OpsWorks::Model::UpdateVolumeRequest::WithMountPoint
UpdateVolumeRequest & WithMountPoint(const Aws::String &value)
Definition: UpdateVolumeRequest.h:147
Aws::OpsWorks::Model::UpdateVolumeRequest::WithName
UpdateVolumeRequest & WithName(const char *value)
Definition: UpdateVolumeRequest.h:116
Aws::OpsWorks::Model::UpdateVolumeRequest::SetMountPoint
void SetMountPoint(const char *value)
Definition: UpdateVolumeRequest.h:142
Aws::OpsWorks::Model::UpdateVolumeRequest::WithMountPoint
UpdateVolumeRequest & WithMountPoint(Aws::String &&value)
Definition: UpdateVolumeRequest.h:152
Aws::OpsWorks::Model::UpdateVolumeRequest::SetVolumeId
void SetVolumeId(const char *value)
Definition: UpdateVolumeRequest.h:60
Aws::OpsWorks::Model::UpdateVolumeRequest::GetName
const Aws::String & GetName() const
Definition: UpdateVolumeRequest.h:81
Aws::OpsWorks::Model::UpdateVolumeRequest::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: UpdateVolumeRequest.h:45
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
OpsWorksRequest.h
Aws::OpsWorks::Model::UpdateVolumeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::UpdateVolumeRequest::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: UpdateVolumeRequest.h:40
Aws::OpsWorks::Model::UpdateVolumeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateVolumeRequest.h:30
Aws::OpsWorks::Model::UpdateVolumeRequest::SetMountPoint
void SetMountPoint(Aws::String &&value)
Definition: UpdateVolumeRequest.h:137
Aws::OpsWorks::Model::UpdateVolumeRequest::WithMountPoint
UpdateVolumeRequest & WithMountPoint(const char *value)
Definition: UpdateVolumeRequest.h:157
AWSString.h
Aws::OpsWorks::Model::UpdateVolumeRequest::WithVolumeId
UpdateVolumeRequest & WithVolumeId(Aws::String &&value)
Definition: UpdateVolumeRequest.h:70
Aws::OpsWorks::Model::UpdateVolumeRequest
Definition: UpdateVolumeRequest.h:22
Aws::OpsWorks::Model::UpdateVolumeRequest::WithVolumeId
UpdateVolumeRequest & WithVolumeId(const Aws::String &value)
Definition: UpdateVolumeRequest.h:65
Aws::OpsWorks::Model::UpdateVolumeRequest::SetMountPoint
void SetMountPoint(const Aws::String &value)
Definition: UpdateVolumeRequest.h:132
Aws::OpsWorks::Model::UpdateVolumeRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateVolumeRequest.h:96
Aws::OpsWorks::Model::UpdateVolumeRequest::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: UpdateVolumeRequest.h:55
Aws::OpsWorks::Model::UpdateVolumeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::UpdateVolumeRequest::SetName
void SetName(const char *value)
Definition: UpdateVolumeRequest.h:101
Aws::OpsWorks::Model::UpdateVolumeRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateVolumeRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::UpdateVolumeRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateVolumeRequest.h:91
Aws::OpsWorks::Model::UpdateVolumeRequest::WithVolumeId
UpdateVolumeRequest & WithVolumeId(const char *value)
Definition: UpdateVolumeRequest.h:75
Aws::OpsWorks::Model::UpdateVolumeRequest::UpdateVolumeRequest
UpdateVolumeRequest()