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

The list of insight states.

*/ inline const Aws::Vector& GetStates() const{ return m_states; } /** *

The list of insight states.

*/ inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; } /** *

The list of insight states.

*/ inline void SetStates(const Aws::Vector& value) { m_statesHasBeenSet = true; m_states = value; } /** *

The list of insight states.

*/ inline void SetStates(Aws::Vector&& value) { m_statesHasBeenSet = true; m_states = std::move(value); } /** *

The list of insight states.

*/ inline GetInsightSummariesRequest& WithStates(const Aws::Vector& value) { SetStates(value); return *this;} /** *

The list of insight states.

*/ inline GetInsightSummariesRequest& WithStates(Aws::Vector&& value) { SetStates(std::move(value)); return *this;} /** *

The list of insight states.

*/ inline GetInsightSummariesRequest& AddStates(const InsightState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; } /** *

The list of insight states.

*/ inline GetInsightSummariesRequest& AddStates(InsightState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline const Aws::String& GetGroupARN() const{ return m_groupARN; } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline GetInsightSummariesRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline GetInsightSummariesRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't * provided.

*/ inline GetInsightSummariesRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;} /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline GetInsightSummariesRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline GetInsightSummariesRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the group. Required if the GroupARN isn't provided.

*/ inline GetInsightSummariesRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline GetInsightSummariesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The beginning of the time frame in which the insights started. The start time * can't be more than 30 days old.

*/ inline GetInsightSummariesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline GetInsightSummariesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time frame in which the insights ended. The end time can't be * more than 30 days old.

*/ inline GetInsightSummariesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The maximum number of results to display.

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

The maximum number of results to display.

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

The maximum number of results to display.

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

The maximum number of results to display.

*/ inline GetInsightSummariesRequest& WithMaxResults(int value) { SetMaxResults(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 GetInsightSummariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token.

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

Pagination token.

*/ inline GetInsightSummariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_states; bool m_statesHasBeenSet = false; Aws::String m_groupARN; bool m_groupARNHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws