AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ArchiveMetricRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AppMonetization {
15namespace Model {
16
26 public:
27 AWS_APPMONETIZATION_API ArchiveMetricRequest() = 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 "ArchiveMetric"; }
34
35 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAppId() const { return m_appId; }
42 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
43 template <typename AppIdT = Aws::String>
44 void SetAppId(AppIdT&& value) {
45 m_appIdHasBeenSet = true;
46 m_appId = std::forward<AppIdT>(value);
47 }
48 template <typename AppIdT = Aws::String>
50 SetAppId(std::forward<AppIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMetricId() const { return m_metricId; }
60 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
61 template <typename MetricIdT = Aws::String>
62 void SetMetricId(MetricIdT&& value) {
63 m_metricIdHasBeenSet = true;
64 m_metricId = std::forward<MetricIdT>(value);
65 }
66 template <typename MetricIdT = Aws::String>
67 ArchiveMetricRequest& WithMetricId(MetricIdT&& value) {
68 SetMetricId(std::forward<MetricIdT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_appId;
74
75 Aws::String m_metricId;
76 bool m_appIdHasBeenSet = false;
77 bool m_metricIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace AppMonetization
82} // namespace Aws
AWS_APPMONETIZATION_API ArchiveMetricRequest()=default
virtual const char * GetServiceRequestName() const override
ArchiveMetricRequest & WithMetricId(MetricIdT &&value)
ArchiveMetricRequest & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String