1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 
12 namespace Aws
13 {
14 namespace OpsWorks
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_OPSWORKS_API UpdateVolumeRequest : public OpsWorksRequest
22   {
23   public:
24     UpdateVolumeRequest();
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.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "UpdateVolume"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The volume ID.</p>
39      */
GetVolumeId()40     inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
41 
42     /**
43      * <p>The volume ID.</p>
44      */
VolumeIdHasBeenSet()45     inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
46 
47     /**
48      * <p>The volume ID.</p>
49      */
SetVolumeId(const Aws::String & value)50     inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
51 
52     /**
53      * <p>The volume ID.</p>
54      */
SetVolumeId(Aws::String && value)55     inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
56 
57     /**
58      * <p>The volume ID.</p>
59      */
SetVolumeId(const char * value)60     inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
61 
62     /**
63      * <p>The volume ID.</p>
64      */
WithVolumeId(const Aws::String & value)65     inline UpdateVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
66 
67     /**
68      * <p>The volume ID.</p>
69      */
WithVolumeId(Aws::String && value)70     inline UpdateVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
71 
72     /**
73      * <p>The volume ID.</p>
74      */
WithVolumeId(const char * value)75     inline UpdateVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
76 
77 
78     /**
79      * <p>The new name.</p>
80      */
GetName()81     inline const Aws::String& GetName() const{ return m_name; }
82 
83     /**
84      * <p>The new name.</p>
85      */
NameHasBeenSet()86     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 
88     /**
89      * <p>The new name.</p>
90      */
SetName(const Aws::String & value)91     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
93     /**
94      * <p>The new name.</p>
95      */
SetName(Aws::String && value)96     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
98     /**
99      * <p>The new name.</p>
100      */
SetName(const char * value)101     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
103     /**
104      * <p>The new name.</p>
105      */
WithName(const Aws::String & value)106     inline UpdateVolumeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
108     /**
109      * <p>The new name.</p>
110      */
WithName(Aws::String && value)111     inline UpdateVolumeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
112 
113     /**
114      * <p>The new name.</p>
115      */
WithName(const char * value)116     inline UpdateVolumeRequest& WithName(const char* value) { SetName(value); return *this;}
117 
118 
119     /**
120      * <p>The new mount point.</p>
121      */
GetMountPoint()122     inline const Aws::String& GetMountPoint() const{ return m_mountPoint; }
123 
124     /**
125      * <p>The new mount point.</p>
126      */
MountPointHasBeenSet()127     inline bool MountPointHasBeenSet() const { return m_mountPointHasBeenSet; }
128 
129     /**
130      * <p>The new mount point.</p>
131      */
SetMountPoint(const Aws::String & value)132     inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
133 
134     /**
135      * <p>The new mount point.</p>
136      */
SetMountPoint(Aws::String && value)137     inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = std::move(value); }
138 
139     /**
140      * <p>The new mount point.</p>
141      */
SetMountPoint(const char * value)142     inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
143 
144     /**
145      * <p>The new mount point.</p>
146      */
WithMountPoint(const Aws::String & value)147     inline UpdateVolumeRequest& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
148 
149     /**
150      * <p>The new mount point.</p>
151      */
WithMountPoint(Aws::String && value)152     inline UpdateVolumeRequest& WithMountPoint(Aws::String&& value) { SetMountPoint(std::move(value)); return *this;}
153 
154     /**
155      * <p>The new mount point.</p>
156      */
WithMountPoint(const char * value)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
174