74 lines
2.2 KiB
C++
74 lines
2.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/xray/XRay_EXPORTS.h>
|
|
#include <aws/xray/XRayRequest.h>
|
|
#include <aws/xray/model/SamplingRuleUpdate.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace XRay
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_XRAY_API UpdateSamplingRuleRequest : public XRayRequest
|
|
{
|
|
public:
|
|
UpdateSamplingRuleRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateSamplingRule"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline const SamplingRuleUpdate& GetSamplingRuleUpdate() const{ return m_samplingRuleUpdate; }
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline bool SamplingRuleUpdateHasBeenSet() const { return m_samplingRuleUpdateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline void SetSamplingRuleUpdate(const SamplingRuleUpdate& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = value; }
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline void SetSamplingRuleUpdate(SamplingRuleUpdate&& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(const SamplingRuleUpdate& value) { SetSamplingRuleUpdate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The rule and fields to change.</p>
|
|
*/
|
|
inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(SamplingRuleUpdate&& value) { SetSamplingRuleUpdate(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
SamplingRuleUpdate m_samplingRuleUpdate;
|
|
bool m_samplingRuleUpdateHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace XRay
|
|
} // namespace Aws
|