AWS SDK for C++  0.14.3
AWS SDK for C++
UploadArchiveRequest.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 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 namespace Glacier
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
41 
45  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
46 
50  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
51 
55  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
56 
60  inline UploadArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
61 
65  inline UploadArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(value); return *this;}
66 
70  inline UploadArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
71 
79  inline const Aws::String& GetAccountId() const{ return m_accountId; }
80 
88  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
89 
97  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
98 
106  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
107 
115  inline UploadArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
116 
124  inline UploadArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
125 
133  inline UploadArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
134 
138  inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
139 
143  inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
144 
148  inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
149 
153  inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
154 
158  inline UploadArchiveRequest& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
159 
163  inline UploadArchiveRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(value); return *this;}
164 
168  inline UploadArchiveRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
169 
173  inline const Aws::String& GetChecksum() const{ return m_checksum; }
174 
178  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
179 
183  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = value; }
184 
188  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
189 
193  inline UploadArchiveRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
194 
198  inline UploadArchiveRequest& WithChecksum(Aws::String&& value) { SetChecksum(value); return *this;}
199 
203  inline UploadArchiveRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
204 
205  private:
206  Aws::String m_vaultName;
207  bool m_vaultNameHasBeenSet;
208  Aws::String m_accountId;
209  bool m_accountIdHasBeenSet;
210  Aws::String m_archiveDescription;
211  bool m_archiveDescriptionHasBeenSet;
212  Aws::String m_checksum;
213  bool m_checksumHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace Glacier
218 } // namespace Aws
UploadArchiveRequest & WithAccountId(const Aws::String &value)
UploadArchiveRequest & WithArchiveDescription(const Aws::String &value)
void SetChecksum(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetAccountId(const Aws::String &value)
UploadArchiveRequest & WithChecksum(const Aws::String &value)
UploadArchiveRequest & WithAccountId(const char *value)
UploadArchiveRequest & WithVaultName(const char *value)
const Aws::String & GetArchiveDescription() const
UploadArchiveRequest & WithAccountId(Aws::String &&value)
void SetArchiveDescription(const Aws::String &value)
#define AWS_GLACIER_API
void SetVaultName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadArchiveRequest & WithVaultName(Aws::String &&value)
UploadArchiveRequest & WithVaultName(const Aws::String &value)
UploadArchiveRequest & WithChecksum(Aws::String &&value)
UploadArchiveRequest & WithArchiveDescription(Aws::String &&value)
UploadArchiveRequest & WithChecksum(const char *value)
UploadArchiveRequest & WithArchiveDescription(const char *value)
JSON (JavaScript Object Notation).