AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
LocationInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/LocationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
34 public:
35 AWS_S3_API LocationInfo() = default;
36 AWS_S3_API LocationInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3_API LocationInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
45 inline LocationType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(LocationType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
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) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 LocationInfo& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77 private:
79 bool m_typeHasBeenSet = false;
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace S3
87} // 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