AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
JSONInput.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
32 {
33 public:
37
39
40
44 inline const JSONType& GetType() const{ return m_type; }
45
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50
54 inline void SetType(const JSONType& value) { m_typeHasBeenSet = true; m_type = value; }
55
59 inline void SetType(JSONType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60
64 inline JSONInput& WithType(const JSONType& value) { SetType(value); return *this;}
65
69 inline JSONInput& WithType(JSONType&& value) { SetType(std::move(value)); return *this;}
70
71 private:
72
73 JSONType m_type;
74 bool m_typeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace S3
79} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool TypeHasBeenSet() const
Definition: JSONInput.h:49
void SetType(JSONType &&value)
Definition: JSONInput.h:59
void SetType(const JSONType &value)
Definition: JSONInput.h:54
JSONInput & WithType(const JSONType &value)
Definition: JSONInput.h:64
JSONInput & WithType(JSONType &&value)
Definition: JSONInput.h:69
AWS_S3_API JSONInput(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API JSONInput & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const JSONType & GetType() const
Definition: JSONInput.h:44