/** * 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 Health { namespace Model { /** */ class DescribeEventsRequest : public HealthRequest { public: AWS_HEALTH_API DescribeEventsRequest(); // 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 "DescribeEvents"; } AWS_HEALTH_API Aws::String SerializePayload() const override; AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Values to narrow the results returned.

*/ inline const EventFilter& GetFilter() const{ return m_filter; } /** *

Values to narrow the results returned.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

Values to narrow the results returned.

*/ inline void SetFilter(const EventFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

Values to narrow the results returned.

*/ inline void SetFilter(EventFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

Values to narrow the results returned.

*/ inline DescribeEventsRequest& WithFilter(const EventFilter& value) { SetFilter(value); return *this;} /** *

Values to narrow the results returned.

*/ inline DescribeEventsRequest& WithFilter(EventFilter&& value) { SetFilter(std::move(value)); return *this;} /** *

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

If the results of a search are large, only a portion of the results are * returned, and a nextToken pagination token is returned in the * response. To retrieve the next batch of results, reissue the search request and * include the returned token. When all results have been returned, the response * does not contain a pagination token value.

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

The maximum number of items to return in one batch, between 10 and 100, * inclusive.

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

The maximum number of items to return in one batch, between 10 and 100, * inclusive.

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

The maximum number of items to return in one batch, between 10 and 100, * inclusive.

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

The maximum number of items to return in one batch, between 10 and 100, * inclusive.

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

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline const Aws::String& GetLocale() const{ return m_locale; } /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; } /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; } /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); } /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); } /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline DescribeEventsRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;} /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline DescribeEventsRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;} /** *

The locale (language) to return information in. English (en) is the default * and the only supported value at this time.

*/ inline DescribeEventsRequest& WithLocale(const char* value) { SetLocale(value); return *this;} private: EventFilter m_filter; bool m_filterHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_locale; bool m_localeHasBeenSet = false; }; } // namespace Model } // namespace Health } // namespace Aws