AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocationInfo.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/LocationType.h>
9#include <aws/core/utils/memory/stl/AWSString.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
38 {
39 public:
40 AWS_S3_API LocationInfo() = default;
41 AWS_S3_API LocationInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3_API LocationInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
51 inline LocationType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(LocationType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline LocationInfo& WithType(LocationType value) { SetType(value); return *this;}
56
58
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 LocationInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71 private:
72
74 bool m_typeHasBeenSet = false;
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace S3
82} // namespace Aws
void SetType(LocationType value)
LocationInfo & WithType(LocationType value)
AWS_S3_API LocationInfo()=default
AWS_S3_API LocationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
LocationType GetType() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LocationInfo & WithName(NameT &&value)
const Aws::String & GetName() const
AWS_S3_API LocationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String