AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteObjectsResult.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
16 #include <aws/s3/S3_EXPORTS.h>
20 #include <aws/s3/model/Error.h>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace S3
35 {
36 namespace Model
37 {
39  {
40  public:
44 
45 
46  inline const Aws::Vector<DeletedObject>& GetDeleted() const{ return m_deleted; }
47 
48 
49  inline void SetDeleted(const Aws::Vector<DeletedObject>& value) { m_deleted = value; }
50 
51 
52  inline void SetDeleted(Aws::Vector<DeletedObject>&& value) { m_deleted = value; }
53 
54 
55  inline DeleteObjectsResult& WithDeleted(const Aws::Vector<DeletedObject>& value) { SetDeleted(value); return *this;}
56 
57 
58  inline DeleteObjectsResult& WithDeleted(Aws::Vector<DeletedObject>&& value) { SetDeleted(value); return *this;}
59 
60 
61  inline DeleteObjectsResult& AddDeleted(const DeletedObject& value) { m_deleted.push_back(value); return *this; }
62 
63 
64  inline DeleteObjectsResult& AddDeleted(DeletedObject&& value) { m_deleted.push_back(value); return *this; }
65 
66 
67  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
68 
69 
70  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
71 
72 
73  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
74 
75 
76  inline DeleteObjectsResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
77 
78 
79  inline DeleteObjectsResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
80 
81 
82  inline const Aws::Vector<Error>& GetErrors() const{ return m_errors; }
83 
84 
85  inline void SetErrors(const Aws::Vector<Error>& value) { m_errors = value; }
86 
87 
88  inline void SetErrors(Aws::Vector<Error>&& value) { m_errors = value; }
89 
90 
91  inline DeleteObjectsResult& WithErrors(const Aws::Vector<Error>& value) { SetErrors(value); return *this;}
92 
93 
94  inline DeleteObjectsResult& WithErrors(Aws::Vector<Error>&& value) { SetErrors(value); return *this;}
95 
96 
97  inline DeleteObjectsResult& AddErrors(const Error& value) { m_errors.push_back(value); return *this; }
98 
99 
100  inline DeleteObjectsResult& AddErrors(Error&& value) { m_errors.push_back(value); return *this; }
101 
102  private:
103  Aws::Vector<DeletedObject> m_deleted;
104  RequestCharged m_requestCharged;
105  Aws::Vector<Error> m_errors;
106  };
107 
108 } // namespace Model
109 } // namespace S3
110 } // namespace Aws
void SetDeleted(Aws::Vector< DeletedObject > &&value)
const RequestCharged & GetRequestCharged() const
void SetDeleted(const Aws::Vector< DeletedObject > &value)
void SetErrors(const Aws::Vector< Error > &value)
DeleteObjectsResult & WithErrors(const Aws::Vector< Error > &value)
DeleteObjectsResult & WithRequestCharged(const RequestCharged &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
DeleteObjectsResult & WithDeleted(const Aws::Vector< DeletedObject > &value)
DeleteObjectsResult & WithErrors(Aws::Vector< Error > &&value)
void SetErrors(Aws::Vector< Error > &&value)
void SetRequestCharged(RequestCharged &&value)
DeleteObjectsResult & AddDeleted(DeletedObject &&value)
DeleteObjectsResult & AddDeleted(const DeletedObject &value)
const Aws::Vector< DeletedObject > & GetDeleted() const
void SetRequestCharged(const RequestCharged &value)
DeleteObjectsResult & AddErrors(Error &&value)
DeleteObjectsResult & WithRequestCharged(RequestCharged &&value)
DeleteObjectsResult & WithDeleted(Aws::Vector< DeletedObject > &&value)
const Aws::Vector< Error > & GetErrors() const
DeleteObjectsResult & AddErrors(const Error &value)
JSON (JavaScript Object Notation).