AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API CreateApplicationRequest() = default;
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
65 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
66 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
67 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
68 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
69 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
70 }
72 private:
73
74 Aws::String m_name;
75 bool m_nameHasBeenSet = false;
76
78 bool m_tagsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Pinpoint
83} // 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