AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ObjectIdentifier.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CRT_API ObjectIdentifier();
35 AWS_S3CRT_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CRT_API ObjectIdentifier& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
49 inline const Aws::String& GetKey() const{ return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
52 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
53 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
54 inline ObjectIdentifier& WithKey(const Aws::String& value) { SetKey(value); return *this;}
55 inline ObjectIdentifier& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
56 inline ObjectIdentifier& WithKey(const char* value) { SetKey(value); return *this;}
58
60
64 inline const Aws::String& GetVersionId() const{ return m_versionId; }
65 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
66 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
67 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
68 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
69 inline ObjectIdentifier& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
70 inline ObjectIdentifier& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
71 inline ObjectIdentifier& WithVersionId(const char* value) { SetVersionId(value); return *this;}
73 private:
74
75 Aws::String m_key;
76 bool m_keyHasBeenSet = false;
77
78 Aws::String m_versionId;
79 bool m_versionIdHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace S3Crt
84} // namespace Aws
AWS_S3CRT_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode &xmlNode)
ObjectIdentifier & WithKey(Aws::String &&value)
const Aws::String & GetKey() const
ObjectIdentifier & WithVersionId(const Aws::String &value)
ObjectIdentifier & WithVersionId(Aws::String &&value)
void SetVersionId(const Aws::String &value)
ObjectIdentifier & WithVersionId(const char *value)
void SetVersionId(Aws::String &&value)
ObjectIdentifier & WithKey(const char *value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetVersionId() const
void SetVersionId(const char *value)
void SetKey(Aws::String &&value)
void SetKey(const Aws::String &value)
ObjectIdentifier & WithKey(const Aws::String &value)
AWS_S3CRT_API ObjectIdentifier & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String