AWS SDK for C++

AWS SDK for C++ Version 1.11.677

Loading...
Searching...
No Matches
CreateSamplingRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/SamplingRule.h>
11#include <aws/xray/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace XRay {
17namespace Model {
18
22 public:
23 AWS_XRAY_API CreateSamplingRuleRequest() = 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 "CreateSamplingRule"; }
30
31 AWS_XRAY_API Aws::String SerializePayload() const override;
32
34
37 inline const SamplingRule& GetSamplingRule() const { return m_samplingRule; }
38 inline bool SamplingRuleHasBeenSet() const { return m_samplingRuleHasBeenSet; }
39 template <typename SamplingRuleT = SamplingRule>
40 void SetSamplingRule(SamplingRuleT&& value) {
41 m_samplingRuleHasBeenSet = true;
42 m_samplingRule = std::forward<SamplingRuleT>(value);
43 }
44 template <typename SamplingRuleT = SamplingRule>
46 SetSamplingRule(std::forward<SamplingRuleT>(value));
47 return *this;
48 }
50
52
66 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
67 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
68 template <typename TagsT = Aws::Vector<Tag>>
69 void SetTags(TagsT&& value) {
70 m_tagsHasBeenSet = true;
71 m_tags = std::forward<TagsT>(value);
72 }
73 template <typename TagsT = Aws::Vector<Tag>>
75 SetTags(std::forward<TagsT>(value));
76 return *this;
77 }
78 template <typename TagsT = Tag>
80 m_tagsHasBeenSet = true;
81 m_tags.emplace_back(std::forward<TagsT>(value));
82 return *this;
83 }
85 private:
86 SamplingRule m_samplingRule;
87 bool m_samplingRuleHasBeenSet = false;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_tagsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace XRay
95} // namespace Aws
CreateSamplingRuleRequest & WithSamplingRule(SamplingRuleT &&value)
virtual const char * GetServiceRequestName() const override
CreateSamplingRuleRequest & AddTags(TagsT &&value)
AWS_XRAY_API Aws::String SerializePayload() const override
CreateSamplingRuleRequest & WithTags(TagsT &&value)
AWS_XRAY_API CreateSamplingRuleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector