AWS SDK for C++  0.14.3
AWS SDK for C++
GetJobOutputResult.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
18 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Glacier
27 {
28 namespace Model
29 {
34  {
35  public:
37  //We have to define these because Microsoft doesn't auto generate them
40  //we delete these because Microsoft doesn't handle move generation correctly
41  //and we therefore don't trust them to get it right here either.
42  GetJobOutputResult(const GetJobOutputResult&) = delete;
43  GetJobOutputResult& operator=(const GetJobOutputResult&) = delete;
44 
45 
48 
49 
53  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
54 
69  inline const Aws::String& GetChecksum() const{ return m_checksum; }
70 
85  inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
86 
101  inline void SetChecksum(Aws::String&& value) { m_checksum = value; }
102 
117  inline void SetChecksum(const char* value) { m_checksum.assign(value); }
118 
133  inline GetJobOutputResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
134 
149  inline GetJobOutputResult& WithChecksum(Aws::String&& value) { SetChecksum(value); return *this;}
150 
165  inline GetJobOutputResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
166 
171  inline int GetStatus() const{ return m_status; }
172 
177  inline void SetStatus(int value) { m_status = value; }
178 
183  inline GetJobOutputResult& WithStatus(int value) { SetStatus(value); return *this;}
184 
190  inline const Aws::String& GetContentRange() const{ return m_contentRange; }
191 
197  inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
198 
204  inline void SetContentRange(Aws::String&& value) { m_contentRange = value; }
205 
211  inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
212 
218  inline GetJobOutputResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
219 
225  inline GetJobOutputResult& WithContentRange(Aws::String&& value) { SetContentRange(value); return *this;}
226 
232  inline GetJobOutputResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
233 
238  inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
239 
244  inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
245 
250  inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = value; }
251 
256  inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
257 
262  inline GetJobOutputResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
263 
268  inline GetJobOutputResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(value); return *this;}
269 
274  inline GetJobOutputResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
275 
283  inline const Aws::String& GetContentType() const{ return m_contentType; }
284 
292  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
293 
301  inline void SetContentType(Aws::String&& value) { m_contentType = value; }
302 
310  inline void SetContentType(const char* value) { m_contentType.assign(value); }
311 
319  inline GetJobOutputResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
320 
328  inline GetJobOutputResult& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
329 
337  inline GetJobOutputResult& WithContentType(const char* value) { SetContentType(value); return *this;}
338 
342  inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
343 
347  inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; }
348 
352  inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = value; }
353 
357  inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); }
358 
362  inline GetJobOutputResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
363 
367  inline GetJobOutputResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(value); return *this;}
368 
372  inline GetJobOutputResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
373 
374  private:
376  Aws::String m_checksum;
377  int m_status;
378  Aws::String m_contentRange;
379  Aws::String m_acceptRanges;
380  Aws::String m_contentType;
381  Aws::String m_archiveDescription;
382  };
383 
384 } // namespace Model
385 } // namespace Glacier
386 } // namespace Aws
const Aws::String & GetChecksum() const
void SetContentRange(const Aws::String &value)
GetJobOutputResult & WithContentRange(const Aws::String &value)
const Aws::String & GetContentType() const
GetJobOutputResult & WithContentRange(Aws::String &&value)
GetJobOutputResult & WithAcceptRanges(const char *value)
void SetAcceptRanges(const Aws::String &value)
void SetContentType(const Aws::String &value)
void SetArchiveDescription(const Aws::String &value)
void SetArchiveDescription(Aws::String &&value)
GetJobOutputResult & WithChecksum(const Aws::String &value)
const Aws::String & GetAcceptRanges() const
GetJobOutputResult & WithContentRange(const char *value)
GetJobOutputResult & WithArchiveDescription(Aws::String &&value)
GetJobOutputResult & WithChecksum(Aws::String &&value)
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:32
void SetChecksum(const Aws::String &value)
GetJobOutputResult & WithAcceptRanges(Aws::String &&value)
GetJobOutputResult & WithContentType(const Aws::String &value)
GetJobOutputResult & WithChecksum(const char *value)
const Aws::String & GetArchiveDescription() const
const Aws::String & GetContentRange() const
#define AWS_GLACIER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetJobOutputResult & WithContentType(Aws::String &&value)
GetJobOutputResult & WithArchiveDescription(const char *value)
GetJobOutputResult & WithAcceptRanges(const Aws::String &value)
GetJobOutputResult & WithStatus(int value)
GetJobOutputResult & WithArchiveDescription(const Aws::String &value)
GetJobOutputResult & WithContentType(const char *value)
JSON (JavaScript Object Notation).