AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateTelemetryPipelineRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
10#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.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 CreateTelemetryPipelineRequest() = 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 "CreateTelemetryPipeline"; }
30
31 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
60 inline const TelemetryPipelineConfiguration& GetConfiguration() const { return m_configuration; }
61 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
62 template <typename ConfigurationT = TelemetryPipelineConfiguration>
63 void SetConfiguration(ConfigurationT&& value) {
64 m_configurationHasBeenSet = true;
65 m_configuration = std::forward<ConfigurationT>(value);
66 }
67 template <typename ConfigurationT = TelemetryPipelineConfiguration>
69 SetConfiguration(std::forward<ConfigurationT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) {
83 m_tagsHasBeenSet = true;
84 m_tags = std::forward<TagsT>(value);
85 }
86 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 SetTags(std::forward<TagsT>(value));
89 return *this;
90 }
91 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
92 CreateTelemetryPipelineRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_name;
100
101 TelemetryPipelineConfiguration m_configuration;
102
104 bool m_nameHasBeenSet = false;
105 bool m_configurationHasBeenSet = false;
106 bool m_tagsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ObservabilityAdmin
111} // namespace Aws
CreateTelemetryPipelineRequest & WithConfiguration(ConfigurationT &&value)
AWS_OBSERVABILITYADMIN_API CreateTelemetryPipelineRequest()=default
CreateTelemetryPipelineRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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