/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A collection of segment documents with matching trace IDs.See
* Also:
AWS API
* Reference
The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline Trace& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline Trace& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique identifier for the request that generated the trace's segments and * subsegments.
*/ inline Trace& WithId(const char* value) { SetId(value); return *this;} /** *The length of time in seconds between the start time of the root segment and * the end time of the last segment that completed.
*/ inline double GetDuration() const{ return m_duration; } /** *The length of time in seconds between the start time of the root segment and * the end time of the last segment that completed.
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The length of time in seconds between the start time of the root segment and * the end time of the last segment that completed.
*/ inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; } /** *The length of time in seconds between the start time of the root segment and * the end time of the last segment that completed.
*/ inline Trace& WithDuration(double value) { SetDuration(value); return *this;} /** *LimitExceeded is set to true when the trace has exceeded the Trace
* document size
limit. For more information about this limit and other
* X-Ray limits and quotas, see Amazon Web
* Services X-Ray endpoints and quotas.
LimitExceeded is set to true when the trace has exceeded the Trace
* document size
limit. For more information about this limit and other
* X-Ray limits and quotas, see Amazon Web
* Services X-Ray endpoints and quotas.
LimitExceeded is set to true when the trace has exceeded the Trace
* document size
limit. For more information about this limit and other
* X-Ray limits and quotas, see Amazon Web
* Services X-Ray endpoints and quotas.
LimitExceeded is set to true when the trace has exceeded the Trace
* document size
limit. For more information about this limit and other
* X-Ray limits and quotas, see Amazon Web
* Services X-Ray endpoints and quotas.
Segment documents for the segments and subsegments that comprise the * trace.
*/ inline const Aws::VectorSegment documents for the segments and subsegments that comprise the * trace.
*/ inline bool SegmentsHasBeenSet() const { return m_segmentsHasBeenSet; } /** *Segment documents for the segments and subsegments that comprise the * trace.
*/ inline void SetSegments(const Aws::VectorSegment documents for the segments and subsegments that comprise the * trace.
*/ inline void SetSegments(Aws::VectorSegment documents for the segments and subsegments that comprise the * trace.
*/ inline Trace& WithSegments(const Aws::VectorSegment documents for the segments and subsegments that comprise the * trace.
*/ inline Trace& WithSegments(Aws::VectorSegment documents for the segments and subsegments that comprise the * trace.
*/ inline Trace& AddSegments(const Segment& value) { m_segmentsHasBeenSet = true; m_segments.push_back(value); return *this; } /** *Segment documents for the segments and subsegments that comprise the * trace.
*/ inline Trace& AddSegments(Segment&& value) { m_segmentsHasBeenSet = true; m_segments.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; double m_duration; bool m_durationHasBeenSet = false; bool m_limitExceeded; bool m_limitExceededHasBeenSet = false; Aws::Vector