/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Aggregated request sampling data for a sampling rule across all services for
* a 10-second window.See Also:
AWS
* API Reference
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 SamplingStatisticSummary& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *The name of the sampling rule.
*/ inline SamplingStatisticSummary& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *The name of the sampling rule.
*/ inline SamplingStatisticSummary& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *The start time of the reporting window.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *The start time of the reporting window.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The start time of the reporting window.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The start time of the reporting window.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The start time of the reporting window.
*/ inline SamplingStatisticSummary& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *The start time of the reporting window.
*/ inline SamplingStatisticSummary& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *The number of requests that matched the rule.
*/ inline int GetRequestCount() const{ return m_requestCount; } /** *The number of requests that matched the rule.
*/ inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; } /** *The number of requests that matched the rule.
*/ inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; } /** *The number of requests that matched the rule.
*/ inline SamplingStatisticSummary& WithRequestCount(int value) { SetRequestCount(value); return *this;} /** *The number of requests recorded with borrowed reservoir quota.
*/ inline int GetBorrowCount() const{ return m_borrowCount; } /** *The number of requests recorded with borrowed reservoir quota.
*/ inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; } /** *The number of requests recorded with borrowed reservoir quota.
*/ inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; } /** *The number of requests recorded with borrowed reservoir quota.
*/ inline SamplingStatisticSummary& WithBorrowCount(int value) { SetBorrowCount(value); return *this;} /** *The number of requests recorded.
*/ inline int GetSampledCount() const{ return m_sampledCount; } /** *The number of requests recorded.
*/ inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; } /** *The number of requests recorded.
*/ inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; } /** *The number of requests recorded.
*/ inline SamplingStatisticSummary& WithSampledCount(int value) { SetSampledCount(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; int m_requestCount; bool m_requestCountHasBeenSet = false; int m_borrowCount; bool m_borrowCountHasBeenSet = false; int m_sampledCount; bool m_sampledCountHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws