AWS SDK for C++  0.14.3
AWS SDK for C++
UploadArchiveResult.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 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace Glacier
32 {
33 namespace Model
34 {
44  {
45  public:
49 
53  inline const Aws::String& GetLocation() const{ return m_location; }
54 
58  inline void SetLocation(const Aws::String& value) { m_location = value; }
59 
63  inline void SetLocation(Aws::String&& value) { m_location = value; }
64 
68  inline void SetLocation(const char* value) { m_location.assign(value); }
69 
73  inline UploadArchiveResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
74 
78  inline UploadArchiveResult& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
79 
83  inline UploadArchiveResult& WithLocation(const char* value) { SetLocation(value); return *this;}
84 
88  inline const Aws::String& GetChecksum() const{ return m_checksum; }
89 
93  inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
94 
98  inline void SetChecksum(Aws::String&& value) { m_checksum = value; }
99 
103  inline void SetChecksum(const char* value) { m_checksum.assign(value); }
104 
108  inline UploadArchiveResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
109 
113  inline UploadArchiveResult& WithChecksum(Aws::String&& value) { SetChecksum(value); return *this;}
114 
118  inline UploadArchiveResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
119 
124  inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
125 
130  inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; }
131 
136  inline void SetArchiveId(Aws::String&& value) { m_archiveId = value; }
137 
142  inline void SetArchiveId(const char* value) { m_archiveId.assign(value); }
143 
148  inline UploadArchiveResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
149 
154  inline UploadArchiveResult& WithArchiveId(Aws::String&& value) { SetArchiveId(value); return *this;}
155 
160  inline UploadArchiveResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
161 
162  private:
163  Aws::String m_location;
164  Aws::String m_checksum;
165  Aws::String m_archiveId;
166  };
167 
168 } // namespace Model
169 } // namespace Glacier
170 } // namespace Aws
UploadArchiveResult & WithChecksum(const Aws::String &value)
UploadArchiveResult & WithArchiveId(const Aws::String &value)
UploadArchiveResult & WithArchiveId(Aws::String &&value)
const Aws::String & GetLocation() const
const Aws::String & GetChecksum() const
UploadArchiveResult & WithChecksum(const char *value)
UploadArchiveResult & WithLocation(Aws::String &&value)
void SetArchiveId(const Aws::String &value)
UploadArchiveResult & WithArchiveId(const char *value)
UploadArchiveResult & WithChecksum(Aws::String &&value)
UploadArchiveResult & WithLocation(const char *value)
const Aws::String & GetArchiveId() const
#define AWS_GLACIER_API
UploadArchiveResult & WithLocation(const Aws::String &value)
void SetChecksum(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLocation(const Aws::String &value)
JSON (JavaScript Object Notation).