AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Template.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
28class Template {
29 public:
30 AWS_PINPOINT_API Template() = default;
31 AWS_PINPOINT_API Template(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PINPOINT_API Template& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Template& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
67 inline const Aws::String& GetVersion() const { return m_version; }
68 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
69 template <typename VersionT = Aws::String>
70 void SetVersion(VersionT&& value) {
71 m_versionHasBeenSet = true;
72 m_version = std::forward<VersionT>(value);
73 }
74 template <typename VersionT = Aws::String>
75 Template& WithVersion(VersionT&& value) {
76 SetVersion(std::forward<VersionT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_name;
82
83 Aws::String m_version;
84 bool m_nameHasBeenSet = false;
85 bool m_versionHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Pinpoint
90} // namespace Aws
void SetVersion(VersionT &&value)
Definition Template.h:70
const Aws::String & GetVersion() const
Definition Template.h:67
void SetName(NameT &&value)
Definition Template.h:43
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API Template()=default
Template & WithVersion(VersionT &&value)
Definition Template.h:75
Template & WithName(NameT &&value)
Definition Template.h:48
AWS_PINPOINT_API Template & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Template.h:40
AWS_PINPOINT_API Template(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue