AWS SDK for C++  0.14.3
AWS SDK for C++
DeletedObject.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace S3
29 {
30 namespace Model
31 {
32 
34  {
35  public:
36  DeletedObject();
38  DeletedObject& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
43  inline const Aws::String& GetKey() const{ return m_key; }
44 
45 
46  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
47 
48 
49  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
50 
51 
52  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
53 
54 
55  inline DeletedObject& WithKey(const Aws::String& value) { SetKey(value); return *this;}
56 
57 
58  inline DeletedObject& WithKey(Aws::String&& value) { SetKey(value); return *this;}
59 
60 
61  inline DeletedObject& WithKey(const char* value) { SetKey(value); return *this;}
62 
63 
64  inline const Aws::String& GetVersionId() const{ return m_versionId; }
65 
66 
67  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
68 
69 
70  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
71 
72 
73  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
74 
75 
76  inline DeletedObject& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
77 
78 
79  inline DeletedObject& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
80 
81 
82  inline DeletedObject& WithVersionId(const char* value) { SetVersionId(value); return *this;}
83 
84 
85  inline bool GetDeleteMarker() const{ return m_deleteMarker; }
86 
87 
88  inline void SetDeleteMarker(bool value) { m_deleteMarkerHasBeenSet = true; m_deleteMarker = value; }
89 
90 
91  inline DeletedObject& WithDeleteMarker(bool value) { SetDeleteMarker(value); return *this;}
92 
93 
94  inline const Aws::String& GetDeleteMarkerVersionId() const{ return m_deleteMarkerVersionId; }
95 
96 
97  inline void SetDeleteMarkerVersionId(const Aws::String& value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId = value; }
98 
99 
100  inline void SetDeleteMarkerVersionId(Aws::String&& value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId = value; }
101 
102 
103  inline void SetDeleteMarkerVersionId(const char* value) { m_deleteMarkerVersionIdHasBeenSet = true; m_deleteMarkerVersionId.assign(value); }
104 
105 
106  inline DeletedObject& WithDeleteMarkerVersionId(const Aws::String& value) { SetDeleteMarkerVersionId(value); return *this;}
107 
108 
109  inline DeletedObject& WithDeleteMarkerVersionId(Aws::String&& value) { SetDeleteMarkerVersionId(value); return *this;}
110 
111 
112  inline DeletedObject& WithDeleteMarkerVersionId(const char* value) { SetDeleteMarkerVersionId(value); return *this;}
113 
114  private:
115  Aws::String m_key;
116  bool m_keyHasBeenSet;
117  Aws::String m_versionId;
118  bool m_versionIdHasBeenSet;
119  bool m_deleteMarker;
120  bool m_deleteMarkerHasBeenSet;
121  Aws::String m_deleteMarkerVersionId;
122  bool m_deleteMarkerVersionIdHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace S3
127 } // namespace Aws
void SetVersionId(const Aws::String &value)
Definition: DeletedObject.h:67
DeletedObject & WithDeleteMarkerVersionId(const char *value)
DeletedObject & WithKey(const Aws::String &value)
Definition: DeletedObject.h:55
DeletedObject & WithDeleteMarkerVersionId(Aws::String &&value)
void SetDeleteMarkerVersionId(const Aws::String &value)
Definition: DeletedObject.h:97
DeletedObject & WithVersionId(Aws::String &&value)
Definition: DeletedObject.h:79
void SetDeleteMarkerVersionId(const char *value)
void SetKey(const Aws::String &value)
Definition: DeletedObject.h:46
DeletedObject & WithKey(Aws::String &&value)
Definition: DeletedObject.h:58
const Aws::String & GetDeleteMarkerVersionId() const
Definition: DeletedObject.h:94
const Aws::String & GetVersionId() const
Definition: DeletedObject.h:64
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
void SetDeleteMarker(bool value)
Definition: DeletedObject.h:88
void SetVersionId(const char *value)
Definition: DeletedObject.h:73
const Aws::String & GetKey() const
Definition: DeletedObject.h:43
void SetVersionId(Aws::String &&value)
Definition: DeletedObject.h:70
DeletedObject & WithKey(const char *value)
Definition: DeletedObject.h:61
void SetKey(const char *value)
Definition: DeletedObject.h:52
void SetKey(Aws::String &&value)
Definition: DeletedObject.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeletedObject & WithDeleteMarker(bool value)
Definition: DeletedObject.h:91
DeletedObject & WithVersionId(const Aws::String &value)
Definition: DeletedObject.h:76
void SetDeleteMarkerVersionId(Aws::String &&value)
DeletedObject & WithDeleteMarkerVersionId(const Aws::String &value)
JSON (JavaScript Object Notation).
DeletedObject & WithVersionId(const char *value)
Definition: DeletedObject.h:82