AWS SDK for C++  0.14.3
AWS SDK for C++
CachediSCSIVolume.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  CachediSCSIVolume& 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 CachediSCSIVolume& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
56 
57 
58  inline CachediSCSIVolume& WithVolumeARN(Aws::String&& value) { SetVolumeARN(value); return *this;}
59 
60 
61  inline CachediSCSIVolume& 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 CachediSCSIVolume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
77 
78 
79  inline CachediSCSIVolume& WithVolumeId(Aws::String&& value) { SetVolumeId(value); return *this;}
80 
81 
82  inline CachediSCSIVolume& 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 CachediSCSIVolume& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
98 
99 
100  inline CachediSCSIVolume& WithVolumeType(Aws::String&& value) { SetVolumeType(value); return *this;}
101 
102 
103  inline CachediSCSIVolume& 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 CachediSCSIVolume& WithVolumeStatus(const Aws::String& value) { SetVolumeStatus(value); return *this;}
119 
120 
121  inline CachediSCSIVolume& WithVolumeStatus(Aws::String&& value) { SetVolumeStatus(value); return *this;}
122 
123 
124  inline CachediSCSIVolume& 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 CachediSCSIVolume& 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 CachediSCSIVolume& WithVolumeProgress(double value) { SetVolumeProgress(value); return *this;}
143 
144 
145  inline const Aws::String& GetSourceSnapshotId() const{ return m_sourceSnapshotId; }
146 
147 
148  inline void SetSourceSnapshotId(const Aws::String& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
149 
150 
151  inline void SetSourceSnapshotId(Aws::String&& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
152 
153 
154  inline void SetSourceSnapshotId(const char* value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId.assign(value); }
155 
156 
157  inline CachediSCSIVolume& WithSourceSnapshotId(const Aws::String& value) { SetSourceSnapshotId(value); return *this;}
158 
159 
160  inline CachediSCSIVolume& WithSourceSnapshotId(Aws::String&& value) { SetSourceSnapshotId(value); return *this;}
161 
162 
163  inline CachediSCSIVolume& WithSourceSnapshotId(const char* value) { SetSourceSnapshotId(value); return *this;}
164 
165 
166  inline const VolumeiSCSIAttributes& GetVolumeiSCSIAttributes() const{ return m_volumeiSCSIAttributes; }
167 
168 
169  inline void SetVolumeiSCSIAttributes(const VolumeiSCSIAttributes& value) { m_volumeiSCSIAttributesHasBeenSet = true; m_volumeiSCSIAttributes = value; }
170 
171 
172  inline void SetVolumeiSCSIAttributes(VolumeiSCSIAttributes&& value) { m_volumeiSCSIAttributesHasBeenSet = true; m_volumeiSCSIAttributes = value; }
173 
174 
175  inline CachediSCSIVolume& WithVolumeiSCSIAttributes(const VolumeiSCSIAttributes& value) { SetVolumeiSCSIAttributes(value); return *this;}
176 
177 
178  inline CachediSCSIVolume& WithVolumeiSCSIAttributes(VolumeiSCSIAttributes&& value) { SetVolumeiSCSIAttributes(value); return *this;}
179 
180  private:
181  Aws::String m_volumeARN;
182  bool m_volumeARNHasBeenSet;
183  Aws::String m_volumeId;
184  bool m_volumeIdHasBeenSet;
185  Aws::String m_volumeType;
186  bool m_volumeTypeHasBeenSet;
187  Aws::String m_volumeStatus;
188  bool m_volumeStatusHasBeenSet;
189  long long m_volumeSizeInBytes;
190  bool m_volumeSizeInBytesHasBeenSet;
191  double m_volumeProgress;
192  bool m_volumeProgressHasBeenSet;
193  Aws::String m_sourceSnapshotId;
194  bool m_sourceSnapshotIdHasBeenSet;
195  VolumeiSCSIAttributes m_volumeiSCSIAttributes;
196  bool m_volumeiSCSIAttributesHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace StorageGateway
201 } // namespace Aws
CachediSCSIVolume & WithVolumeARN(const Aws::String &value)
const Aws::String & GetSourceSnapshotId() const
void SetSourceSnapshotId(const Aws::String &value)
void SetVolumeType(const Aws::String &value)
void SetVolumeARN(const Aws::String &value)
CachediSCSIVolume & WithVolumeType(const char *value)
CachediSCSIVolume & WithVolumeId(const Aws::String &value)
CachediSCSIVolume & WithVolumeStatus(Aws::String &&value)
void SetVolumeStatus(const Aws::String &value)
CachediSCSIVolume & WithVolumeStatus(const char *value)
CachediSCSIVolume & WithVolumeiSCSIAttributes(VolumeiSCSIAttributes &&value)
CachediSCSIVolume & WithSourceSnapshotId(Aws::String &&value)
CachediSCSIVolume & WithVolumeType(Aws::String &&value)
CachediSCSIVolume & WithVolumeSizeInBytes(long long value)
CachediSCSIVolume & WithVolumeId(Aws::String &&value)
void SetVolumeiSCSIAttributes(VolumeiSCSIAttributes &&value)
void SetVolumeId(const Aws::String &value)
CachediSCSIVolume & WithVolumeProgress(double value)
CachediSCSIVolume & WithVolumeARN(Aws::String &&value)
CachediSCSIVolume & WithVolumeType(const Aws::String &value)
const VolumeiSCSIAttributes & GetVolumeiSCSIAttributes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVolumeiSCSIAttributes(const VolumeiSCSIAttributes &value)
CachediSCSIVolume & WithSourceSnapshotId(const char *value)
CachediSCSIVolume & WithVolumeStatus(const Aws::String &value)
CachediSCSIVolume & WithVolumeARN(const char *value)
#define AWS_STORAGEGATEWAY_API
CachediSCSIVolume & WithVolumeId(const char *value)
CachediSCSIVolume & WithSourceSnapshotId(const Aws::String &value)
JSON (JavaScript Object Notation).
CachediSCSIVolume & WithVolumeiSCSIAttributes(const VolumeiSCSIAttributes &value)