AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateVolumeRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace OpsWorks
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_OPSWORKS_API UpdateVolumeRequest() = default;
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_OPSWORKS_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
42 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
43 template<typename VolumeIdT = Aws::String>
44 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
45 template<typename VolumeIdT = Aws::String>
46 UpdateVolumeRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateVolumeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetMountPoint() const { return m_mountPoint; }
66 inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
67 template<typename MountPointT = Aws::String>
68 void SetMountPoint(MountPointT&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::forward<MountPointT>(value); }
69 template<typename MountPointT = Aws::String>
70 UpdateVolumeRequest& WithMountPoint(MountPointT&& value) { SetMountPoint(std::forward<MountPointT>(value)); return *this;}
72 private:
73
74 Aws::String m_volumeId;
75 bool m_volumeIdHasBeenSet = false;
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
80 Aws::String m_mountPoint;
81 bool m_mountPointHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace OpsWorks
86} // namespace Aws
UpdateVolumeRequest & WithMountPoint(MountPointT &&value)
UpdateVolumeRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPSWORKS_API Aws::String SerializePayload() const override
AWS_OPSWORKS_API UpdateVolumeRequest()=default
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVolumeRequest & WithVolumeId(VolumeIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String