AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Bucket.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_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 S3Crt
22{
23namespace Model
24{
25
32 class Bucket
33 {
34 public:
35 AWS_S3CRT_API Bucket();
36 AWS_S3CRT_API Bucket(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CRT_API Bucket& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Bucket& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Bucket& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Bucket& WithName(const char* value) { SetName(value); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
62 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
63 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
64 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
65 inline Bucket& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
66 inline Bucket& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
68
70
75 inline const Aws::String& GetBucketRegion() const{ return m_bucketRegion; }
76 inline bool BucketRegionHasBeenSet() const { return m_bucketRegionHasBeenSet; }
77 inline void SetBucketRegion(const Aws::String& value) { m_bucketRegionHasBeenSet = true; m_bucketRegion = value; }
78 inline void SetBucketRegion(Aws::String&& value) { m_bucketRegionHasBeenSet = true; m_bucketRegion = std::move(value); }
79 inline void SetBucketRegion(const char* value) { m_bucketRegionHasBeenSet = true; m_bucketRegion.assign(value); }
80 inline Bucket& WithBucketRegion(const Aws::String& value) { SetBucketRegion(value); return *this;}
81 inline Bucket& WithBucketRegion(Aws::String&& value) { SetBucketRegion(std::move(value)); return *this;}
82 inline Bucket& WithBucketRegion(const char* value) { SetBucketRegion(value); return *this;}
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::Utils::DateTime m_creationDate;
90 bool m_creationDateHasBeenSet = false;
91
92 Aws::String m_bucketRegion;
93 bool m_bucketRegionHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace S3Crt
98} // namespace Aws
AWS_S3CRT_API Bucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetBucketRegion(const Aws::String &value)
Definition Bucket.h:77
void SetName(Aws::String &&value)
Definition Bucket.h:49
bool BucketRegionHasBeenSet() const
Definition Bucket.h:76
const Aws::String & GetName() const
Definition Bucket.h:46
void SetName(const char *value)
Definition Bucket.h:50
bool NameHasBeenSet() const
Definition Bucket.h:47
void SetName(const Aws::String &value)
Definition Bucket.h:48
Bucket & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Bucket.h:65
void SetBucketRegion(Aws::String &&value)
Definition Bucket.h:78
AWS_S3CRT_API Bucket()
Bucket & WithName(const Aws::String &value)
Definition Bucket.h:51
AWS_S3CRT_API Bucket(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetBucketRegion() const
Definition Bucket.h:75
const Aws::Utils::DateTime & GetCreationDate() const
Definition Bucket.h:61
Bucket & WithName(const char *value)
Definition Bucket.h:53
Bucket & WithName(Aws::String &&value)
Definition Bucket.h:52
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Bucket.h:64
Bucket & WithBucketRegion(Aws::String &&value)
Definition Bucket.h:81
bool CreationDateHasBeenSet() const
Definition Bucket.h:62
void SetBucketRegion(const char *value)
Definition Bucket.h:79
Bucket & WithBucketRegion(const char *value)
Definition Bucket.h:82
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Bucket.h:63
Bucket & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Bucket.h:66
Bucket & WithBucketRegion(const Aws::String &value)
Definition Bucket.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String