AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Bucket.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
33 class Bucket
34 {
35 public:
39
41
42
46 inline const Aws::String& GetName() const{ return m_name; }
47
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67
71 inline Bucket& WithName(const Aws::String& value) { SetName(value); return *this;}
72
76 inline Bucket& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77
81 inline Bucket& WithName(const char* value) { SetName(value); return *this;}
82
83
88 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
89
94 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
95
100 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
101
106 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
107
112 inline Bucket& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
113
118 inline Bucket& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
119
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::Utils::DateTime m_creationDate;
126 bool m_creationDateHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace S3Crt
131} // namespace Aws
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
AWS_S3CRT_API Bucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(Aws::String &&value)
Definition: Bucket.h:61
const Aws::String & GetName() const
Definition: Bucket.h:46
void SetName(const char *value)
Definition: Bucket.h:66
bool NameHasBeenSet() const
Definition: Bucket.h:51
void SetName(const Aws::String &value)
Definition: Bucket.h:56
Bucket & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: Bucket.h:112
AWS_S3CRT_API Bucket()
Bucket & WithName(const Aws::String &value)
Definition: Bucket.h:71
AWS_S3CRT_API Bucket(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Utils::DateTime & GetCreationDate() const
Definition: Bucket.h:88
Bucket & WithName(const char *value)
Definition: Bucket.h:81
Bucket & WithName(Aws::String &&value)
Definition: Bucket.h:76
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: Bucket.h:106
bool CreationDateHasBeenSet() const
Definition: Bucket.h:94
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: Bucket.h:100
Bucket & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: Bucket.h:118
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String