AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateAppRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/CostTrackingConfiguration.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppMonetization {
18namespace Model {
19
26 public:
27 AWS_APPMONETIZATION_API CreateAppRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateApp"; }
34
35 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
36
38
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>
49 CreateAppRequest& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 CreateAppRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
87 CreateAppRequest& WithClientToken(ClientTokenT&& value) {
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 CreateAppRequest& WithTags(TagsT&& value) {
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
115 return *this;
116 }
118
120
125 inline const CostTrackingConfiguration& GetCostTracking() const { return m_costTracking; }
126 inline bool CostTrackingHasBeenSet() const { return m_costTrackingHasBeenSet; }
127 template <typename CostTrackingT = CostTrackingConfiguration>
128 void SetCostTracking(CostTrackingT&& value) {
129 m_costTrackingHasBeenSet = true;
130 m_costTracking = std::forward<CostTrackingT>(value);
131 }
132 template <typename CostTrackingT = CostTrackingConfiguration>
133 CreateAppRequest& WithCostTracking(CostTrackingT&& value) {
134 SetCostTracking(std::forward<CostTrackingT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_name;
140
141 Aws::String m_description;
142
144
146
147 CostTrackingConfiguration m_costTracking;
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_clientTokenHasBeenSet = true;
151 bool m_tagsHasBeenSet = false;
152 bool m_costTrackingHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace AppMonetization
157} // namespace Aws
AWS_APPMONETIZATION_API CreateAppRequest()=default
CreateAppRequest & WithName(NameT &&value)
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const CostTrackingConfiguration & GetCostTracking() const
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppRequest & WithTags(TagsT &&value)
CreateAppRequest & WithCostTracking(CostTrackingT &&value)
CreateAppRequest & WithDescription(DescriptionT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
CreateAppRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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