AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BucketInfo.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/DataRedundancy.h>
9#include <aws/s3/model/BucketType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_S3_API BucketInfo();
39 AWS_S3_API BucketInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3_API BucketInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
50 inline const DataRedundancy& GetDataRedundancy() const{ return m_dataRedundancy; }
51 inline bool DataRedundancyHasBeenSet() const { return m_dataRedundancyHasBeenSet; }
52 inline void SetDataRedundancy(const DataRedundancy& value) { m_dataRedundancyHasBeenSet = true; m_dataRedundancy = value; }
53 inline void SetDataRedundancy(DataRedundancy&& value) { m_dataRedundancyHasBeenSet = true; m_dataRedundancy = std::move(value); }
54 inline BucketInfo& WithDataRedundancy(const DataRedundancy& value) { SetDataRedundancy(value); return *this;}
55 inline BucketInfo& WithDataRedundancy(DataRedundancy&& value) { SetDataRedundancy(std::move(value)); return *this;}
57
59
62 inline const BucketType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const BucketType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(BucketType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline BucketInfo& WithType(const BucketType& value) { SetType(value); return *this;}
67 inline BucketInfo& WithType(BucketType&& value) { SetType(std::move(value)); return *this;}
69 private:
70
71 DataRedundancy m_dataRedundancy;
72 bool m_dataRedundancyHasBeenSet = false;
73
74 BucketType m_type;
75 bool m_typeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace S3
80} // namespace Aws
void SetType(const BucketType &value)
Definition BucketInfo.h:64
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const BucketType & GetType() const
Definition BucketInfo.h:62
bool TypeHasBeenSet() const
Definition BucketInfo.h:63
BucketInfo & WithDataRedundancy(const DataRedundancy &value)
Definition BucketInfo.h:54
BucketInfo & WithType(const BucketType &value)
Definition BucketInfo.h:66
const DataRedundancy & GetDataRedundancy() const
Definition BucketInfo.h:50
void SetDataRedundancy(const DataRedundancy &value)
Definition BucketInfo.h:52
BucketInfo & WithType(BucketType &&value)
Definition BucketInfo.h:67
bool DataRedundancyHasBeenSet() const
Definition BucketInfo.h:51
void SetType(BucketType &&value)
Definition BucketInfo.h:65
void SetDataRedundancy(DataRedundancy &&value)
Definition BucketInfo.h:53
AWS_S3_API BucketInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API BucketInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BucketInfo & WithDataRedundancy(DataRedundancy &&value)
Definition BucketInfo.h:55