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/S3_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 S3
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3_API ObjectIdentifier();
35 AWS_S3_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_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 S3
84} // namespace Aws
ObjectIdentifier & WithKey(const Aws::String &value)
ObjectIdentifier & WithKey(const char *value)
void SetKey(Aws::String &&value)
void SetVersionId(const Aws::String &value)
const Aws::String & GetVersionId() const
AWS_S3_API ObjectIdentifier(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(const char *value)
ObjectIdentifier & WithVersionId(const Aws::String &value)
AWS_S3_API ObjectIdentifier & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetVersionId(Aws::String &&value)
void SetKey(const Aws::String &value)
ObjectIdentifier & WithVersionId(const char *value)
void SetVersionId(const char *value)
ObjectIdentifier & WithVersionId(Aws::String &&value)
const Aws::String & GetKey() const
ObjectIdentifier & WithKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String