/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Request sampling results for a single rule from a service. Results are for
* the last 10 seconds unless the service has been assigned a longer reporting
* interval after a previous call to GetSamplingTargets.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 SamplingStatisticsDocument& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *The name of the sampling rule.
*/ inline SamplingStatisticsDocument& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *The name of the sampling rule.
*/ inline SamplingStatisticsDocument& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *A unique identifier for the service in hexadecimal.
*/ inline const Aws::String& GetClientID() const{ return m_clientID; } /** *A unique identifier for the service in hexadecimal.
*/ inline bool ClientIDHasBeenSet() const { return m_clientIDHasBeenSet; } /** *A unique identifier for the service in hexadecimal.
*/ inline void SetClientID(const Aws::String& value) { m_clientIDHasBeenSet = true; m_clientID = value; } /** *A unique identifier for the service in hexadecimal.
*/ inline void SetClientID(Aws::String&& value) { m_clientIDHasBeenSet = true; m_clientID = std::move(value); } /** *A unique identifier for the service in hexadecimal.
*/ inline void SetClientID(const char* value) { m_clientIDHasBeenSet = true; m_clientID.assign(value); } /** *A unique identifier for the service in hexadecimal.
*/ inline SamplingStatisticsDocument& WithClientID(const Aws::String& value) { SetClientID(value); return *this;} /** *A unique identifier for the service in hexadecimal.
*/ inline SamplingStatisticsDocument& WithClientID(Aws::String&& value) { SetClientID(std::move(value)); return *this;} /** *A unique identifier for the service in hexadecimal.
*/ inline SamplingStatisticsDocument& WithClientID(const char* value) { SetClientID(value); return *this;} /** *The current time.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *The current time.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The current time.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The current time.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The current time.
*/ inline SamplingStatisticsDocument& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *The current time.
*/ inline SamplingStatisticsDocument& 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 SamplingStatisticsDocument& WithRequestCount(int value) { SetRequestCount(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 SamplingStatisticsDocument& WithSampledCount(int value) { SetSampledCount(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 SamplingStatisticsDocument& WithBorrowCount(int value) { SetBorrowCount(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::String m_clientID; bool m_clientIDHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; int m_requestCount; bool m_requestCountHasBeenSet = false; int m_sampledCount; bool m_sampledCountHasBeenSet = false; int m_borrowCount; bool m_borrowCountHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws