AWS SDK for C++  0.12.9
AWS SDK for C++
UploadDocumentsResult.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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CloudSearchDomain
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::String& GetStatus() const{ return m_status; }
51 
55  inline void SetStatus(const Aws::String& value) { m_status = value; }
56 
60  inline void SetStatus(Aws::String&& value) { m_status = value; }
61 
65  inline void SetStatus(const char* value) { m_status.assign(value); }
66 
70  inline UploadDocumentsResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
71 
75  inline UploadDocumentsResult& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
76 
80  inline UploadDocumentsResult& WithStatus(const char* value) { SetStatus(value); return *this;}
81 
85  inline long long GetAdds() const{ return m_adds; }
86 
90  inline void SetAdds(long long value) { m_adds = value; }
91 
95  inline UploadDocumentsResult& WithAdds(long long value) { SetAdds(value); return *this;}
96 
100  inline long long GetDeletes() const{ return m_deletes; }
101 
105  inline void SetDeletes(long long value) { m_deletes = value; }
106 
110  inline UploadDocumentsResult& WithDeletes(long long value) { SetDeletes(value); return *this;}
111 
116  inline const Aws::Vector<DocumentServiceWarning>& GetWarnings() const{ return m_warnings; }
117 
122  inline void SetWarnings(const Aws::Vector<DocumentServiceWarning>& value) { m_warnings = value; }
123 
128  inline void SetWarnings(Aws::Vector<DocumentServiceWarning>&& value) { m_warnings = value; }
129 
134  inline UploadDocumentsResult& WithWarnings(const Aws::Vector<DocumentServiceWarning>& value) { SetWarnings(value); return *this;}
135 
140  inline UploadDocumentsResult& WithWarnings(Aws::Vector<DocumentServiceWarning>&& value) { SetWarnings(value); return *this;}
141 
146  inline UploadDocumentsResult& AddWarnings(const DocumentServiceWarning& value) { m_warnings.push_back(value); return *this; }
147 
152  inline UploadDocumentsResult& AddWarnings(DocumentServiceWarning&& value) { m_warnings.push_back(value); return *this; }
153 
154  private:
155  Aws::String m_status;
156  long long m_adds;
157  long long m_deletes;
159  };
160 
161 } // namespace Model
162 } // namespace CloudSearchDomain
163 } // namespace Aws
UploadDocumentsResult & WithStatus(const char *value)
UploadDocumentsResult & WithStatus(Aws::String &&value)
UploadDocumentsResult & WithWarnings(const Aws::Vector< DocumentServiceWarning > &value)
const Aws::Vector< DocumentServiceWarning > & GetWarnings() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UploadDocumentsResult & AddWarnings(DocumentServiceWarning &&value)
UploadDocumentsResult & WithStatus(const Aws::String &value)
UploadDocumentsResult & WithAdds(long long value)
void SetWarnings(const Aws::Vector< DocumentServiceWarning > &value)
UploadDocumentsResult & WithWarnings(Aws::Vector< DocumentServiceWarning > &&value)
void SetWarnings(Aws::Vector< DocumentServiceWarning > &&value)
#define AWS_CLOUDSEARCHDOMAIN_API
UploadDocumentsResult & WithDeletes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadDocumentsResult & AddWarnings(const DocumentServiceWarning &value)
JSON (JavaScript Object Notation).