/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

Sampling statistics from a call to GetSamplingTargets * that X-Ray could not process.

See Also:

AWS * API Reference

*/ class UnprocessedStatistics { public: AWS_XRAY_API UnprocessedStatistics(); AWS_XRAY_API UnprocessedStatistics(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API UnprocessedStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the sampling rule.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the sampling rule.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the sampling rule.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the sampling rule.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the sampling rule.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the sampling rule.

*/ inline UnprocessedStatistics& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the sampling rule.

*/ inline UnprocessedStatistics& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the sampling rule.

*/ inline UnprocessedStatistics& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

The error code.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code.

*/ inline UnprocessedStatistics& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline UnprocessedStatistics& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code.

*/ inline UnprocessedStatistics& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The error message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The error message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The error message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The error message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The error message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The error message.

*/ inline UnprocessedStatistics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The error message.

*/ inline UnprocessedStatistics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The error message.

*/ inline UnprocessedStatistics& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws