/** * 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 BatchGetTracesRequest : public XRayRequest { public: AWS_XRAY_API BatchGetTracesRequest(); // 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 "BatchGetTraces"; } AWS_XRAY_API Aws::String SerializePayload() const override; /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline const Aws::Vector& GetTraceIds() const{ return m_traceIds; } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline bool TraceIdsHasBeenSet() const { return m_traceIdsHasBeenSet; } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline void SetTraceIds(const Aws::Vector& value) { m_traceIdsHasBeenSet = true; m_traceIds = value; } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline void SetTraceIds(Aws::Vector&& value) { m_traceIdsHasBeenSet = true; m_traceIds = std::move(value); } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline BatchGetTracesRequest& WithTraceIds(const Aws::Vector& value) { SetTraceIds(value); return *this;} /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline BatchGetTracesRequest& WithTraceIds(Aws::Vector&& value) { SetTraceIds(std::move(value)); return *this;} /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline BatchGetTracesRequest& AddTraceIds(const Aws::String& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline BatchGetTracesRequest& AddTraceIds(Aws::String&& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(std::move(value)); return *this; } /** *

Specify the trace IDs of requests for which to retrieve segments.

*/ inline BatchGetTracesRequest& AddTraceIds(const char* value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; } /** *

Pagination token.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Pagination token.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Pagination token.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Pagination token.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Pagination token.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Pagination token.

*/ inline BatchGetTracesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token.

*/ inline BatchGetTracesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Pagination token.

*/ inline BatchGetTracesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_traceIds; bool m_traceIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws