AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutRumMetricsDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rum/CloudWatchRUMRequest.h>
9#include <aws/rum/CloudWatchRUM_EXPORTS.h>
10#include <aws/rum/model/MetricDestination.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchRUM {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHRUM_API PutRumMetricsDestinationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutRumMetricsDestination"; }
29
30 AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAppMonitorName() const { return m_appMonitorName; }
37 inline bool AppMonitorNameHasBeenSet() const { return m_appMonitorNameHasBeenSet; }
38 template <typename AppMonitorNameT = Aws::String>
39 void SetAppMonitorName(AppMonitorNameT&& value) {
40 m_appMonitorNameHasBeenSet = true;
41 m_appMonitorName = std::forward<AppMonitorNameT>(value);
42 }
43 template <typename AppMonitorNameT = Aws::String>
45 SetAppMonitorName(std::forward<AppMonitorNameT>(value));
46 return *this;
47 }
49
51
58 inline MetricDestination GetDestination() const { return m_destination; }
59 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
60 inline void SetDestination(MetricDestination value) {
61 m_destinationHasBeenSet = true;
62 m_destination = value;
63 }
65 SetDestination(value);
66 return *this;
67 }
69
71
76 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
77 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
78 template <typename DestinationArnT = Aws::String>
79 void SetDestinationArn(DestinationArnT&& value) {
80 m_destinationArnHasBeenSet = true;
81 m_destinationArn = std::forward<DestinationArnT>(value);
82 }
83 template <typename DestinationArnT = Aws::String>
85 SetDestinationArn(std::forward<DestinationArnT>(value));
86 return *this;
87 }
89
91
104 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
105 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
106 template <typename IamRoleArnT = Aws::String>
107 void SetIamRoleArn(IamRoleArnT&& value) {
108 m_iamRoleArnHasBeenSet = true;
109 m_iamRoleArn = std::forward<IamRoleArnT>(value);
110 }
111 template <typename IamRoleArnT = Aws::String>
113 SetIamRoleArn(std::forward<IamRoleArnT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_appMonitorName;
119
121
122 Aws::String m_destinationArn;
123
124 Aws::String m_iamRoleArn;
125 bool m_appMonitorNameHasBeenSet = false;
126 bool m_destinationHasBeenSet = false;
127 bool m_destinationArnHasBeenSet = false;
128 bool m_iamRoleArnHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace CloudWatchRUM
133} // namespace Aws
PutRumMetricsDestinationRequest & WithDestinationArn(DestinationArnT &&value)
AWS_CLOUDWATCHRUM_API PutRumMetricsDestinationRequest()=default
PutRumMetricsDestinationRequest & WithIamRoleArn(IamRoleArnT &&value)
PutRumMetricsDestinationRequest & WithAppMonitorName(AppMonitorNameT &&value)
AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override
PutRumMetricsDestinationRequest & WithDestination(MetricDestination value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String