/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace XRay { namespace Model { /** */ class PutTraceSegmentsRequest : public XRayRequest { public: AWS_XRAY_API PutTraceSegmentsRequest(); // 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 "PutTraceSegments"; } AWS_XRAY_API Aws::String SerializePayload() const override; /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline const Aws::Vector& GetTraceSegmentDocuments() const{ return m_traceSegmentDocuments; } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline bool TraceSegmentDocumentsHasBeenSet() const { return m_traceSegmentDocumentsHasBeenSet; } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline void SetTraceSegmentDocuments(const Aws::Vector& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments = value; } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline void SetTraceSegmentDocuments(Aws::Vector&& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments = std::move(value); } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline PutTraceSegmentsRequest& WithTraceSegmentDocuments(const Aws::Vector& value) { SetTraceSegmentDocuments(value); return *this;} /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline PutTraceSegmentsRequest& WithTraceSegmentDocuments(Aws::Vector&& value) { SetTraceSegmentDocuments(std::move(value)); return *this;} /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(const Aws::String& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(value); return *this; } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(Aws::String&& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(std::move(value)); return *this; } /** *

A string containing a JSON document defining one or more segments or * subsegments.

*/ inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(const char* value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(value); return *this; } private: Aws::Vector m_traceSegmentDocuments; bool m_traceSegmentDocumentsHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws