AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSamplingRuleRequest.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/xray/model/SamplingRule.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/xray/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace XRay
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSamplingRule"; }
33
34 AWS_XRAY_API Aws::String SerializePayload() const override;
35
36
38
41 inline const SamplingRule& GetSamplingRule() const{ return m_samplingRule; }
42 inline bool SamplingRuleHasBeenSet() const { return m_samplingRuleHasBeenSet; }
43 inline void SetSamplingRule(const SamplingRule& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = value; }
44 inline void SetSamplingRule(SamplingRule&& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = std::move(value); }
45 inline CreateSamplingRuleRequest& WithSamplingRule(const SamplingRule& value) { SetSamplingRule(value); return *this;}
46 inline CreateSamplingRuleRequest& WithSamplingRule(SamplingRule&& value) { SetSamplingRule(std::move(value)); return *this;}
48
50
64 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
65 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
66 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
67 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
68 inline CreateSamplingRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
69 inline CreateSamplingRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
70 inline CreateSamplingRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
71 inline CreateSamplingRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
73 private:
74
75 SamplingRule m_samplingRule;
76 bool m_samplingRuleHasBeenSet = false;
77
78 Aws::Vector<Tag> m_tags;
79 bool m_tagsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace XRay
84} // namespace Aws
CreateSamplingRuleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateSamplingRuleRequest & AddTags(Tag &&value)
CreateSamplingRuleRequest & WithSamplingRule(const SamplingRule &value)
virtual const char * GetServiceRequestName() const override
CreateSamplingRuleRequest & AddTags(const Tag &value)
CreateSamplingRuleRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_XRAY_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateSamplingRuleRequest & WithSamplingRule(SamplingRule &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector