AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/TelemetryPipelineConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ObservabilityAdmin {
17namespace Model {
18
22 public:
23 AWS_OBSERVABILITYADMIN_API TestTelemetryPipelineRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "TestTelemetryPipeline"; }
30
31 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
39 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
40 template <typename RecordsT = Aws::Vector<Record>>
41 void SetRecords(RecordsT&& value) {
42 m_recordsHasBeenSet = true;
43 m_records = std::forward<RecordsT>(value);
44 }
45 template <typename RecordsT = Aws::Vector<Record>>
47 SetRecords(std::forward<RecordsT>(value));
48 return *this;
49 }
50 template <typename RecordsT = Record>
52 m_recordsHasBeenSet = true;
53 m_records.emplace_back(std::forward<RecordsT>(value));
54 return *this;
55 }
57
59
62 inline const TelemetryPipelineConfiguration& GetConfiguration() const { return m_configuration; }
63 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
64 template <typename ConfigurationT = TelemetryPipelineConfiguration>
65 void SetConfiguration(ConfigurationT&& value) {
66 m_configurationHasBeenSet = true;
67 m_configuration = std::forward<ConfigurationT>(value);
68 }
69 template <typename ConfigurationT = TelemetryPipelineConfiguration>
71 SetConfiguration(std::forward<ConfigurationT>(value));
72 return *this;
73 }
75 private:
76 Aws::Vector<Record> m_records;
77
78 TelemetryPipelineConfiguration m_configuration;
79 bool m_recordsHasBeenSet = false;
80 bool m_configurationHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ObservabilityAdmin
85} // namespace Aws
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