/** * 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 #include namespace Aws { namespace SSMIncidents { namespace Model { /** */ class ListTimelineEventsRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API ListTimelineEventsRequest(); // 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 "ListTimelineEvents"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline ListTimelineEventsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline ListTimelineEventsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline ListTimelineEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Filters the timeline events based on the provided conditional values. You can * filter timeline events with the following keys:

  • * eventTime

  • eventType

  • *

Note the following when deciding how to use Filters:

  • *

    If you don't specify a Filter, the response includes all timeline events.

    *
  • If you specify more than one filter in a single request, the * response returns timeline events that match all filters.

  • If * you specify a filter with more than one value, the response returns timeline * events that match any of the values provided.

*/ inline ListTimelineEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline ListTimelineEventsRequest& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline ListTimelineEventsRequest& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the incident that includes the timeline * event.

*/ inline ListTimelineEventsRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;} /** *

The maximum number of results per page.

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

The maximum number of results per page.

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

The maximum number of results per page.

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

The maximum number of results per page.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

*/ inline ListTimelineEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Sort timeline events by the specified key value pair.

*/ inline const TimelineEventSort& GetSortBy() const{ return m_sortBy; } /** *

Sort timeline events by the specified key value pair.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

Sort timeline events by the specified key value pair.

*/ inline void SetSortBy(const TimelineEventSort& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

Sort timeline events by the specified key value pair.

*/ inline void SetSortBy(TimelineEventSort&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

Sort timeline events by the specified key value pair.

*/ inline ListTimelineEventsRequest& WithSortBy(const TimelineEventSort& value) { SetSortBy(value); return *this;} /** *

Sort timeline events by the specified key value pair.

*/ inline ListTimelineEventsRequest& WithSortBy(TimelineEventSort&& value) { SetSortBy(std::move(value)); return *this;} /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline ListTimelineEventsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

Sorts the order of timeline events by the value specified in the * sortBy field.

*/ inline ListTimelineEventsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_incidentRecordArn; bool m_incidentRecordArnHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; TimelineEventSort m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws