AWS SDK for C++  0.14.3
AWS SDK for C++
StorediSCSIVolume.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace StorageGateway
30 {
31 namespace Model
32 {
33 
35  {
36  public:
39  StorediSCSIVolume& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
43  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
44 
45 
46  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
47 
48 
49  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
50 
51 
52  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
53 
54 
55  inline StorediSCSIVolume& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
56 
57 
58  inline StorediSCSIVolume& WithVolumeARN(Aws::String&& value) { SetVolumeARN(value); return *this;}
59 
60 
61  inline StorediSCSIVolume& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
62 
63 
64  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
65 
66 
67  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
68 
69 
70  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
71 
72 
73  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
74 
75 
76  inline StorediSCSIVolume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
77 
78 
79  inline StorediSCSIVolume& WithVolumeId(Aws::String&& value) { SetVolumeId(value); return *this;}
80 
81 
82  inline StorediSCSIVolume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
83 
84 
85  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
86 
87 
88  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
89 
90 
91  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
92 
93 
94  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
95 
96 
97  inline StorediSCSIVolume& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
98 
99 
100  inline StorediSCSIVolume& WithVolumeType(Aws::String&& value) { SetVolumeType(value); return *this;}
101 
102 
103  inline StorediSCSIVolume& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
104 
105 
106  inline const Aws::String& GetVolumeStatus() const{ return m_volumeStatus; }
107 
108 
109  inline void SetVolumeStatus(const Aws::String& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = value; }
110 
111 
112  inline void SetVolumeStatus(Aws::String&& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = value; }
113 
114 
115  inline void SetVolumeStatus(const char* value) { m_volumeStatusHasBeenSet = true; m_volumeStatus.assign(value); }
116 
117 
118  inline StorediSCSIVolume& WithVolumeStatus(const Aws::String& value) { SetVolumeStatus(value); return *this;}
119 
120 
121  inline StorediSCSIVolume& WithVolumeStatus(Aws::String&& value) { SetVolumeStatus(value); return *this;}
122 
123 
124  inline StorediSCSIVolume& WithVolumeStatus(const char* value) { SetVolumeStatus(value); return *this;}
125 
126 
127  inline long long GetVolumeSizeInBytes() const{ return m_volumeSizeInBytes; }
128 
129 
130  inline void SetVolumeSizeInBytes(long long value) { m_volumeSizeInBytesHasBeenSet = true; m_volumeSizeInBytes = value; }
131 
132 
133  inline StorediSCSIVolume& WithVolumeSizeInBytes(long long value) { SetVolumeSizeInBytes(value); return *this;}
134 
135 
136  inline double GetVolumeProgress() const{ return m_volumeProgress; }
137 
138 
139  inline void SetVolumeProgress(double value) { m_volumeProgressHasBeenSet = true; m_volumeProgress = value; }
140 
141 
142  inline StorediSCSIVolume& WithVolumeProgress(double value) { SetVolumeProgress(value); return *this;}
143 
144 
145  inline const Aws::String& GetVolumeDiskId() const{ return m_volumeDiskId; }
146 
147 
148  inline void SetVolumeDiskId(const Aws::String& value) { m_volumeDiskIdHasBeenSet = true; m_volumeDiskId = value; }
149 
150 
151  inline void SetVolumeDiskId(Aws::String&& value) { m_volumeDiskIdHasBeenSet = true; m_volumeDiskId = value; }
152 
153 
154  inline void SetVolumeDiskId(const char* value) { m_volumeDiskIdHasBeenSet = true; m_volumeDiskId.assign(value); }
155 
156 
157  inline StorediSCSIVolume& WithVolumeDiskId(const Aws::String& value) { SetVolumeDiskId(value); return *this;}
158 
159 
160  inline StorediSCSIVolume& WithVolumeDiskId(Aws::String&& value) { SetVolumeDiskId(value); return *this;}
161 
162 
163  inline StorediSCSIVolume& WithVolumeDiskId(const char* value) { SetVolumeDiskId(value); return *this;}
164 
165 
166  inline const Aws::String& GetSourceSnapshotId() const{ return m_sourceSnapshotId; }
167 
168 
169  inline void SetSourceSnapshotId(const Aws::String& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
170 
171 
172  inline void SetSourceSnapshotId(Aws::String&& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
173 
174 
175  inline void SetSourceSnapshotId(const char* value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId.assign(value); }
176 
177 
178  inline StorediSCSIVolume& WithSourceSnapshotId(const Aws::String& value) { SetSourceSnapshotId(value); return *this;}
179 
180 
181  inline StorediSCSIVolume& WithSourceSnapshotId(Aws::String&& value) { SetSourceSnapshotId(value); return *this;}
182 
183 
184  inline StorediSCSIVolume& WithSourceSnapshotId(const char* value) { SetSourceSnapshotId(value); return *this;}
185 
186 
187  inline bool GetPreservedExistingData() const{ return m_preservedExistingData; }
188 
189 
190  inline void SetPreservedExistingData(bool value) { m_preservedExistingDataHasBeenSet = true; m_preservedExistingData = value; }
191 
192 
193  inline StorediSCSIVolume& WithPreservedExistingData(bool value) { SetPreservedExistingData(value); return *this;}
194 
195 
196  inline const VolumeiSCSIAttributes& GetVolumeiSCSIAttributes() const{ return m_volumeiSCSIAttributes; }
197 
198 
199  inline void SetVolumeiSCSIAttributes(const VolumeiSCSIAttributes& value) { m_volumeiSCSIAttributesHasBeenSet = true; m_volumeiSCSIAttributes = value; }
200 
201 
202  inline void SetVolumeiSCSIAttributes(VolumeiSCSIAttributes&& value) { m_volumeiSCSIAttributesHasBeenSet = true; m_volumeiSCSIAttributes = value; }
203 
204 
205  inline StorediSCSIVolume& WithVolumeiSCSIAttributes(const VolumeiSCSIAttributes& value) { SetVolumeiSCSIAttributes(value); return *this;}
206 
207 
208  inline StorediSCSIVolume& WithVolumeiSCSIAttributes(VolumeiSCSIAttributes&& value) { SetVolumeiSCSIAttributes(value); return *this;}
209 
210  private:
211  Aws::String m_volumeARN;
212  bool m_volumeARNHasBeenSet;
213  Aws::String m_volumeId;
214  bool m_volumeIdHasBeenSet;
215  Aws::String m_volumeType;
216  bool m_volumeTypeHasBeenSet;
217  Aws::String m_volumeStatus;
218  bool m_volumeStatusHasBeenSet;
219  long long m_volumeSizeInBytes;
220  bool m_volumeSizeInBytesHasBeenSet;
221  double m_volumeProgress;
222  bool m_volumeProgressHasBeenSet;
223  Aws::String m_volumeDiskId;
224  bool m_volumeDiskIdHasBeenSet;
225  Aws::String m_sourceSnapshotId;
226  bool m_sourceSnapshotIdHasBeenSet;
227  bool m_preservedExistingData;
228  bool m_preservedExistingDataHasBeenSet;
229  VolumeiSCSIAttributes m_volumeiSCSIAttributes;
230  bool m_volumeiSCSIAttributesHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace StorageGateway
235 } // namespace Aws
void SetVolumeiSCSIAttributes(VolumeiSCSIAttributes &&value)
StorediSCSIVolume & WithSourceSnapshotId(Aws::String &&value)
StorediSCSIVolume & WithVolumeId(const Aws::String &value)
void SetSourceSnapshotId(const Aws::String &value)
void SetVolumeType(const Aws::String &value)
void SetVolumeId(const Aws::String &value)
StorediSCSIVolume & WithVolumeiSCSIAttributes(VolumeiSCSIAttributes &&value)
StorediSCSIVolume & WithVolumeProgress(double value)
void SetVolumeARN(const Aws::String &value)
StorediSCSIVolume & WithVolumeARN(Aws::String &&value)
StorediSCSIVolume & WithPreservedExistingData(bool value)
StorediSCSIVolume & WithVolumeStatus(Aws::String &&value)
StorediSCSIVolume & WithVolumeId(Aws::String &&value)
StorediSCSIVolume & WithVolumeDiskId(const Aws::String &value)
void SetVolumeDiskId(const Aws::String &value)
StorediSCSIVolume & WithVolumeType(const Aws::String &value)
StorediSCSIVolume & WithVolumeSizeInBytes(long long value)
StorediSCSIVolume & WithVolumeStatus(const char *value)
StorediSCSIVolume & WithVolumeType(Aws::String &&value)
StorediSCSIVolume & WithSourceSnapshotId(const char *value)
StorediSCSIVolume & WithVolumeARN(const char *value)
void SetVolumeiSCSIAttributes(const VolumeiSCSIAttributes &value)
StorediSCSIVolume & WithSourceSnapshotId(const Aws::String &value)
const VolumeiSCSIAttributes & GetVolumeiSCSIAttributes() const
const Aws::String & GetSourceSnapshotId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StorediSCSIVolume & WithVolumeiSCSIAttributes(const VolumeiSCSIAttributes &value)
StorediSCSIVolume & WithVolumeDiskId(Aws::String &&value)
StorediSCSIVolume & WithVolumeId(const char *value)
void SetVolumeStatus(const Aws::String &value)
#define AWS_STORAGEGATEWAY_API
StorediSCSIVolume & WithVolumeStatus(const Aws::String &value)
StorediSCSIVolume & WithVolumeARN(const Aws::String &value)
StorediSCSIVolume & WithVolumeType(const char *value)
StorediSCSIVolume & WithVolumeDiskId(const char *value)
JSON (JavaScript Object Notation).