AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API CreateApplicationRequest() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_name;
82
84 bool m_nameHasBeenSet = false;
85 bool m_tagsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Pinpoint
90} // namespace Aws
CreateApplicationRequest & WithTags(TagsT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PINPOINT_API CreateApplicationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API CreateApplicationRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CreateApplicationRequest & WithName(NameT &&value)
AWS_PINPOINT_API CreateApplicationRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue