/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ApplicationInsights { namespace Model { /** */ class ListConfigurationHistoryRequest : public ApplicationInsightsRequest { public: AWS_APPLICATIONINSIGHTS_API ListConfigurationHistoryRequest(); // 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 "ListConfigurationHistory"; } AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override; AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Resource group to which the application belongs.

*/ inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; } /** *

Resource group to which the application belongs.

*/ inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; } /** *

Resource group to which the application belongs.

*/ inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; } /** *

Resource group to which the application belongs.

*/ inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); } /** *

Resource group to which the application belongs.

*/ inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); } /** *

Resource group to which the application belongs.

*/ inline ListConfigurationHistoryRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;} /** *

Resource group to which the application belongs.

*/ inline ListConfigurationHistoryRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;} /** *

Resource group to which the application belongs.

*/ inline ListConfigurationHistoryRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;} /** *

The start time of the event.

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

The start time of the event.

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

The start time of the event.

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

The start time of the event.

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

The start time of the event.

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

The start time of the event.

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

The end time of the event.

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

The end time of the event.

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

The end time of the event.

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

The end time of the event.

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

The end time of the event.

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

The end time of the event.

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

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline const ConfigurationEventStatus& GetEventStatus() const{ return m_eventStatus; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline void SetEventStatus(const ConfigurationEventStatus& value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline void SetEventStatus(ConfigurationEventStatus&& value) { m_eventStatusHasBeenSet = true; m_eventStatus = std::move(value); } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline ListConfigurationHistoryRequest& WithEventStatus(const ConfigurationEventStatus& value) { SetEventStatus(value); return *this;} /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline ListConfigurationHistoryRequest& WithEventStatus(ConfigurationEventStatus&& value) { SetEventStatus(std::move(value)); return *this;} /** *

The maximum number of results returned by * ListConfigurationHistory in paginated output. When this parameter * is used, ListConfigurationHistory returns only * MaxResults in a single page along with a NextToken * response element. The remaining results of the initial request can be seen by * sending another ListConfigurationHistory request with the returned * NextToken value. If this parameter is not used, then * ListConfigurationHistory returns all results.

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

The maximum number of results returned by * ListConfigurationHistory in paginated output. When this parameter * is used, ListConfigurationHistory returns only * MaxResults in a single page along with a NextToken * response element. The remaining results of the initial request can be seen by * sending another ListConfigurationHistory request with the returned * NextToken value. If this parameter is not used, then * ListConfigurationHistory returns all results.

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

The maximum number of results returned by * ListConfigurationHistory in paginated output. When this parameter * is used, ListConfigurationHistory returns only * MaxResults in a single page along with a NextToken * response element. The remaining results of the initial request can be seen by * sending another ListConfigurationHistory request with the returned * NextToken value. If this parameter is not used, then * ListConfigurationHistory returns all results.

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

The maximum number of results returned by * ListConfigurationHistory in paginated output. When this parameter * is used, ListConfigurationHistory returns only * MaxResults in a single page along with a NextToken * response element. The remaining results of the initial request can be seen by * sending another ListConfigurationHistory request with the returned * NextToken value. If this parameter is not used, then * ListConfigurationHistory returns all results.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The NextToken value returned from a previous paginated * ListConfigurationHistory request where MaxResults was * used and the results exceeded the value of that parameter. Pagination continues * from the end of the previous results that returned the NextToken * value. This value is null when there are no more results to * return.

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

The AWS account ID for the resource group owner.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The AWS account ID for the resource group owner.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The AWS account ID for the resource group owner.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The AWS account ID for the resource group owner.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The AWS account ID for the resource group owner.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The AWS account ID for the resource group owner.

*/ inline ListConfigurationHistoryRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The AWS account ID for the resource group owner.

*/ inline ListConfigurationHistoryRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The AWS account ID for the resource group owner.

*/ inline ListConfigurationHistoryRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_resourceGroupName; bool m_resourceGroupNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; ConfigurationEventStatus m_eventStatus; bool m_eventStatusHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws