AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CommonPrefix.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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
35 {
36 public:
40
42
43
47 inline const Aws::String& GetPrefix() const{ return m_prefix; }
48
52 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
53
57 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
58
62 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
63
67 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
68
72 inline CommonPrefix& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
73
77 inline CommonPrefix& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
78
82 inline CommonPrefix& WithPrefix(const char* value) { SetPrefix(value); return *this;}
83
84 private:
85
86 Aws::String m_prefix;
87 bool m_prefixHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace S3
92} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetPrefix(const Aws::String &value)
Definition: CommonPrefix.h:57
CommonPrefix & WithPrefix(Aws::String &&value)
Definition: CommonPrefix.h:77
const Aws::String & GetPrefix() const
Definition: CommonPrefix.h:47
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetPrefix(const char *value)
Definition: CommonPrefix.h:67
void SetPrefix(Aws::String &&value)
Definition: CommonPrefix.h:62
AWS_S3_API CommonPrefix & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CommonPrefix & WithPrefix(const char *value)
Definition: CommonPrefix.h:82
AWS_S3_API CommonPrefix(const Aws::Utils::Xml::XmlNode &xmlNode)
CommonPrefix & WithPrefix(const Aws::String &value)
Definition: CommonPrefix.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String