AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
TestTelemetryPipelineRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/Record.h>
11#include <aws/observabilityadmin/model/SignalType.h>
12#include <aws/observabilityadmin/model/TelemetryPipelineConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ObservabilityAdmin {
18namespace Model {
19
23 public:
24 AWS_OBSERVABILITYADMIN_API TestTelemetryPipelineRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "TestTelemetryPipeline"; }
31
32 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
40 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
41 template <typename RecordsT = Aws::Vector<Record>>
42 void SetRecords(RecordsT&& value) {
43 m_recordsHasBeenSet = true;
44 m_records = std::forward<RecordsT>(value);
45 }
46 template <typename RecordsT = Aws::Vector<Record>>
48 SetRecords(std::forward<RecordsT>(value));
49 return *this;
50 }
51 template <typename RecordsT = Record>
53 m_recordsHasBeenSet = true;
54 m_records.emplace_back(std::forward<RecordsT>(value));
55 return *this;
56 }
58
60
63 inline const TelemetryPipelineConfiguration& GetConfiguration() const { return m_configuration; }
64 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
65 template <typename ConfigurationT = TelemetryPipelineConfiguration>
66 void SetConfiguration(ConfigurationT&& value) {
67 m_configurationHasBeenSet = true;
68 m_configuration = std::forward<ConfigurationT>(value);
69 }
70 template <typename ConfigurationT = TelemetryPipelineConfiguration>
72 SetConfiguration(std::forward<ConfigurationT>(value));
73 return *this;
74 }
76
78
82 inline SignalType GetSignalType() const { return m_signalType; }
83 inline bool SignalTypeHasBeenSet() const { return m_signalTypeHasBeenSet; }
84 inline void SetSignalType(SignalType value) {
85 m_signalTypeHasBeenSet = true;
86 m_signalType = value;
87 }
89 SetSignalType(value);
90 return *this;
91 }
93 private:
94 Aws::Vector<Record> m_records;
95
96 TelemetryPipelineConfiguration m_configuration;
97
98 SignalType m_signalType{SignalType::NOT_SET};
99 bool m_recordsHasBeenSet = false;
100 bool m_configurationHasBeenSet = false;
101 bool m_signalTypeHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ObservabilityAdmin
106} // namespace Aws
TestTelemetryPipelineRequest & WithSignalType(SignalType value)
TestTelemetryPipelineRequest & AddRecords(RecordsT &&value)
TestTelemetryPipelineRequest & WithRecords(RecordsT &&value)
AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override
AWS_OBSERVABILITYADMIN_API TestTelemetryPipelineRequest()=default
TestTelemetryPipelineRequest & WithConfiguration(ConfigurationT &&value)
const TelemetryPipelineConfiguration & GetConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector