AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ObjectIdentifier.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API ObjectIdentifier() = default;
36 AWS_S3_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
50 inline const Aws::String& GetKey() const { return m_key; }
51 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 template<typename KeyT = Aws::String>
53 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
54 template<typename KeyT = Aws::String>
55 ObjectIdentifier& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
57
59
63 inline const Aws::String& GetVersionId() const { return m_versionId; }
64 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
65 template<typename VersionIdT = Aws::String>
66 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
67 template<typename VersionIdT = Aws::String>
68 ObjectIdentifier& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
70
72
79 inline const Aws::String& GetETag() const { return m_eTag; }
80 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
81 template<typename ETagT = Aws::String>
82 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
83 template<typename ETagT = Aws::String>
84 ObjectIdentifier& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
86
88
93 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
94 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
95 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
96 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
97 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
98 ObjectIdentifier& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
100
102
107 inline long long GetSize() const { return m_size; }
108 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
109 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
110 inline ObjectIdentifier& WithSize(long long value) { SetSize(value); return *this;}
112 private:
113
114 Aws::String m_key;
115 bool m_keyHasBeenSet = false;
116
117 Aws::String m_versionId;
118 bool m_versionIdHasBeenSet = false;
119
120 Aws::String m_eTag;
121 bool m_eTagHasBeenSet = false;
122
123 Aws::Utils::DateTime m_lastModifiedTime{};
124 bool m_lastModifiedTimeHasBeenSet = false;
125
126 long long m_size{0};
127 bool m_sizeHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace S3
132} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetVersionId() const
ObjectIdentifier & WithSize(long long value)
AWS_S3_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetETag() const
ObjectIdentifier & WithVersionId(VersionIdT &&value)
AWS_S3_API ObjectIdentifier & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ObjectIdentifier & WithLastModifiedTime(LastModifiedTimeT &&value)
ObjectIdentifier & WithETag(ETagT &&value)
AWS_S3_API ObjectIdentifier()=default
ObjectIdentifier & WithKey(KeyT &&value)
void SetVersionId(VersionIdT &&value)
const Aws::String & GetKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String