AWS SDK for C++  1.9.125
AWS SDK for C++
Bucket.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3
22 {
23 namespace Model
24 {
25 
34  {
35  public:
36  Bucket();
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
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;
124 
125  Aws::Utils::DateTime m_creationDate;
126  bool m_creationDateHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace S3
131 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::S3::Model::Bucket::WithName
Bucket & WithName(const Aws::String &value)
Definition: Bucket.h:71
Aws::S3::Model::Bucket::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: Bucket.h:106
Aws::S3::Model::Bucket
Definition: Bucket.h:34
Aws::S3::Model::Bucket::WithCreationDate
Bucket & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: Bucket.h:112
Aws::S3::Model::Bucket::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: Bucket.h:94
Aws::S3::Model::Bucket::WithName
Bucket & WithName(const char *value)
Definition: Bucket.h:81
DateTime.h
Aws::S3::Model::Bucket::Bucket
Bucket()
Aws::S3::Model::Bucket::operator=
Bucket & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3::Model::Bucket::SetName
void SetName(Aws::String &&value)
Definition: Bucket.h:61
Aws::S3::Model::Bucket::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Bucket.h:51
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3::Model::Bucket::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: Bucket.h:88
AWSString.h
Aws::S3::Model::Bucket::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: Bucket.h:100
Aws::S3::Model::Bucket::GetName
const Aws::String & GetName() const
Definition: Bucket.h:46
Aws::S3::Model::Bucket::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3::Model::Bucket::SetName
void SetName(const Aws::String &value)
Definition: Bucket.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::Bucket::Bucket
Bucket(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::Bucket::WithCreationDate
Bucket & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: Bucket.h:118
Aws::S3::Model::Bucket::WithName
Bucket & WithName(Aws::String &&value)
Definition: Bucket.h:76
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::Bucket::SetName
void SetName(const char *value)
Definition: Bucket.h:66