1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/xray/XRay_EXPORTS.h> 8 #include <aws/xray/XRayRequest.h> 9 #include <aws/xray/model/SamplingRuleUpdate.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace XRay 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_XRAY_API UpdateSamplingRuleRequest : public XRayRequest 22 { 23 public: 24 UpdateSamplingRuleRequest(); 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. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "UpdateSamplingRule"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The rule and fields to change.</p> 37 */ GetSamplingRuleUpdate()38 inline const SamplingRuleUpdate& GetSamplingRuleUpdate() const{ return m_samplingRuleUpdate; } 39 40 /** 41 * <p>The rule and fields to change.</p> 42 */ SamplingRuleUpdateHasBeenSet()43 inline bool SamplingRuleUpdateHasBeenSet() const { return m_samplingRuleUpdateHasBeenSet; } 44 45 /** 46 * <p>The rule and fields to change.</p> 47 */ SetSamplingRuleUpdate(const SamplingRuleUpdate & value)48 inline void SetSamplingRuleUpdate(const SamplingRuleUpdate& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = value; } 49 50 /** 51 * <p>The rule and fields to change.</p> 52 */ SetSamplingRuleUpdate(SamplingRuleUpdate && value)53 inline void SetSamplingRuleUpdate(SamplingRuleUpdate&& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = std::move(value); } 54 55 /** 56 * <p>The rule and fields to change.</p> 57 */ WithSamplingRuleUpdate(const SamplingRuleUpdate & value)58 inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(const SamplingRuleUpdate& value) { SetSamplingRuleUpdate(value); return *this;} 59 60 /** 61 * <p>The rule and fields to change.</p> 62 */ WithSamplingRuleUpdate(SamplingRuleUpdate && value)63 inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(SamplingRuleUpdate&& value) { SetSamplingRuleUpdate(std::move(value)); return *this;} 64 65 private: 66 67 SamplingRuleUpdate m_samplingRuleUpdate; 68 bool m_samplingRuleUpdateHasBeenSet; 69 }; 70 71 } // namespace Model 72 } // namespace XRay 73 } // namespace Aws 74