AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocationInfo.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/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 S3Crt
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_S3CRT_API LocationInfo();
40 AWS_S3CRT_API LocationInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_S3CRT_API LocationInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const LocationType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const LocationType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(LocationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline LocationInfo& WithType(const LocationType& value) { SetType(value); return *this;}
55 inline LocationInfo& WithType(LocationType&& value) { SetType(std::move(value)); return *this;}
57
59
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline LocationInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline LocationInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline LocationInfo& WithName(const char* value) { SetName(value); return *this;}
74 private:
75
76 LocationType m_type;
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace S3Crt
85} // namespace Aws
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LocationInfo & WithType(const LocationType &value)
LocationInfo & WithName(const char *value)
LocationInfo & WithName(const Aws::String &value)
LocationInfo & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
void SetName(Aws::String &&value)
const LocationType & GetType() const
AWS_S3CRT_API LocationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
AWS_S3CRT_API LocationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetType(const LocationType &value)
void SetName(const char *value)
LocationInfo & WithType(LocationType &&value)
void SetType(LocationType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String