AWS SDK for C++  0.14.3
AWS SDK for C++
CreateCachediSCSIVolumeRequest.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 StorageGateway
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
38  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
39 
40 
41  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
42 
43 
44  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
45 
46 
47  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
48 
49 
50  inline CreateCachediSCSIVolumeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
51 
52 
53  inline CreateCachediSCSIVolumeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
54 
55 
56  inline CreateCachediSCSIVolumeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
57 
58 
59  inline long long GetVolumeSizeInBytes() const{ return m_volumeSizeInBytes; }
60 
61 
62  inline void SetVolumeSizeInBytes(long long value) { m_volumeSizeInBytesHasBeenSet = true; m_volumeSizeInBytes = value; }
63 
64 
65  inline CreateCachediSCSIVolumeRequest& WithVolumeSizeInBytes(long long value) { SetVolumeSizeInBytes(value); return *this;}
66 
67 
68  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
69 
70 
71  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
72 
73 
74  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
75 
76 
77  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
78 
79 
80  inline CreateCachediSCSIVolumeRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
81 
82 
83  inline CreateCachediSCSIVolumeRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
84 
85 
86  inline CreateCachediSCSIVolumeRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
87 
88 
89  inline const Aws::String& GetTargetName() const{ return m_targetName; }
90 
91 
92  inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
93 
94 
95  inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
96 
97 
98  inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
99 
100 
101  inline CreateCachediSCSIVolumeRequest& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
102 
103 
104  inline CreateCachediSCSIVolumeRequest& WithTargetName(Aws::String&& value) { SetTargetName(value); return *this;}
105 
106 
107  inline CreateCachediSCSIVolumeRequest& WithTargetName(const char* value) { SetTargetName(value); return *this;}
108 
109 
110  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
111 
112 
113  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
114 
115 
116  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
117 
118 
119  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
120 
121 
122  inline CreateCachediSCSIVolumeRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
123 
124 
125  inline CreateCachediSCSIVolumeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
126 
127 
128  inline CreateCachediSCSIVolumeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
129 
130 
131  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
132 
133 
134  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
135 
136 
137  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
138 
139 
140  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
141 
142 
143  inline CreateCachediSCSIVolumeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
144 
145 
146  inline CreateCachediSCSIVolumeRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
147 
148 
149  inline CreateCachediSCSIVolumeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
150 
151  private:
152  Aws::String m_gatewayARN;
153  bool m_gatewayARNHasBeenSet;
154  long long m_volumeSizeInBytes;
155  bool m_volumeSizeInBytesHasBeenSet;
156  Aws::String m_snapshotId;
157  bool m_snapshotIdHasBeenSet;
158  Aws::String m_targetName;
159  bool m_targetNameHasBeenSet;
160  Aws::String m_networkInterfaceId;
161  bool m_networkInterfaceIdHasBeenSet;
162  Aws::String m_clientToken;
163  bool m_clientTokenHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace StorageGateway
168 } // namespace Aws
CreateCachediSCSIVolumeRequest & WithNetworkInterfaceId(const char *value)
CreateCachediSCSIVolumeRequest & WithTargetName(const char *value)
CreateCachediSCSIVolumeRequest & WithClientToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateCachediSCSIVolumeRequest & WithClientToken(const char *value)
CreateCachediSCSIVolumeRequest & WithGatewayARN(const char *value)
CreateCachediSCSIVolumeRequest & WithSnapshotId(Aws::String &&value)
CreateCachediSCSIVolumeRequest & WithSnapshotId(const Aws::String &value)
CreateCachediSCSIVolumeRequest & WithClientToken(const Aws::String &value)
CreateCachediSCSIVolumeRequest & WithGatewayARN(const Aws::String &value)
CreateCachediSCSIVolumeRequest & WithNetworkInterfaceId(const Aws::String &value)
CreateCachediSCSIVolumeRequest & WithTargetName(const Aws::String &value)
CreateCachediSCSIVolumeRequest & WithVolumeSizeInBytes(long long value)
CreateCachediSCSIVolumeRequest & WithNetworkInterfaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateCachediSCSIVolumeRequest & WithSnapshotId(const char *value)
#define AWS_STORAGEGATEWAY_API
CreateCachediSCSIVolumeRequest & WithTargetName(Aws::String &&value)
CreateCachediSCSIVolumeRequest & WithGatewayARN(Aws::String &&value)
JSON (JavaScript Object Notation).