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

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline const Aws::String& GetInsightId() const{ return m_insightId; } /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; } /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline void SetInsightId(const Aws::String& value) { m_insightIdHasBeenSet = true; m_insightId = value; } /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline void SetInsightId(Aws::String&& value) { m_insightIdHasBeenSet = true; m_insightId = std::move(value); } /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline void SetInsightId(const char* value) { m_insightIdHasBeenSet = true; m_insightId.assign(value); } /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline GetInsightEventsRequest& WithInsightId(const Aws::String& value) { SetInsightId(value); return *this;} /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline GetInsightEventsRequest& WithInsightId(Aws::String&& value) { SetInsightId(std::move(value)); return *this;} /** *

The insight's unique identifier. Use the GetInsightSummaries action to * retrieve an InsightId.

*/ inline GetInsightEventsRequest& WithInsightId(const char* value) { SetInsightId(value); return *this;} /** *

Used to retrieve at most the specified value of events.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Used to retrieve at most the specified value of events.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Used to retrieve at most the specified value of events.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Used to retrieve at most the specified value of events.

*/ inline GetInsightEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

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

Specify the pagination token returned by a previous request to retrieve the * next page of events.

*/ inline GetInsightEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_insightId; bool m_insightIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws