AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteMarkerEntry.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>
17 #include <aws/s3/model/Owner.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace S3
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  DeleteMarkerEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
45  inline const Owner& GetOwner() const{ return m_owner; }
46 
47 
48  inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
49 
50 
51  inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = value; }
52 
53 
54  inline DeleteMarkerEntry& WithOwner(const Owner& value) { SetOwner(value); return *this;}
55 
56 
57  inline DeleteMarkerEntry& WithOwner(Owner&& value) { SetOwner(value); return *this;}
58 
62  inline const Aws::String& GetKey() const{ return m_key; }
63 
67  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
68 
72  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
73 
77  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
78 
82  inline DeleteMarkerEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
83 
87  inline DeleteMarkerEntry& WithKey(Aws::String&& value) { SetKey(value); return *this;}
88 
92  inline DeleteMarkerEntry& WithKey(const char* value) { SetKey(value); return *this;}
93 
97  inline const Aws::String& GetVersionId() const{ return m_versionId; }
98 
102  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
103 
107  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
108 
112  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
113 
117  inline DeleteMarkerEntry& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
118 
122  inline DeleteMarkerEntry& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
123 
127  inline DeleteMarkerEntry& WithVersionId(const char* value) { SetVersionId(value); return *this;}
128 
133  inline bool GetIsLatest() const{ return m_isLatest; }
134 
139  inline void SetIsLatest(bool value) { m_isLatestHasBeenSet = true; m_isLatest = value; }
140 
145  inline DeleteMarkerEntry& WithIsLatest(bool value) { SetIsLatest(value); return *this;}
146 
150  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
151 
155  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
156 
160  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
161 
165  inline DeleteMarkerEntry& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
166 
170  inline DeleteMarkerEntry& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(value); return *this;}
171 
172  private:
173  Owner m_owner;
174  bool m_ownerHasBeenSet;
175  Aws::String m_key;
176  bool m_keyHasBeenSet;
177  Aws::String m_versionId;
178  bool m_versionIdHasBeenSet;
179  bool m_isLatest;
180  bool m_isLatestHasBeenSet;
181  Aws::Utils::DateTime m_lastModified;
182  bool m_lastModifiedHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace S3
187 } // namespace Aws
DeleteMarkerEntry & WithOwner(Owner &&value)
void SetVersionId(Aws::String &&value)
void SetVersionId(const Aws::String &value)
void SetKey(Aws::String &&value)
DeleteMarkerEntry & WithVersionId(Aws::String &&value)
DeleteMarkerEntry & WithVersionId(const Aws::String &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
DeleteMarkerEntry & WithKey(Aws::String &&value)
void SetIsLatest(bool value)
void SetKey(const char *value)
const Aws::String & GetVersionId() const
void SetVersionId(const char *value)
void SetKey(const Aws::String &value)
DeleteMarkerEntry & WithLastModified(Aws::Utils::DateTime &&value)
DeleteMarkerEntry & WithLastModified(const Aws::Utils::DateTime &value)
void SetOwner(Owner &&value)
const Owner & GetOwner() const
DeleteMarkerEntry & WithOwner(const Owner &value)
const Aws::Utils::DateTime & GetLastModified() const
bool GetIsLatest() const
void SetLastModified(Aws::Utils::DateTime &&value)
void SetLastModified(const Aws::Utils::DateTime &value)
DeleteMarkerEntry & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetKey() const
void SetOwner(const Owner &value)
DeleteMarkerEntry & WithIsLatest(bool value)
DeleteMarkerEntry & WithVersionId(const char *value)
DeleteMarkerEntry & WithKey(const char *value)
JSON (JavaScript Object Notation).