/** * 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 ConfigService { namespace Model { /** *

The input for the GetResourceConfigHistory action.

See * Also:

AWS * API Reference

*/ class GetResourceConfigHistoryRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API GetResourceConfigHistoryRequest(); // 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 "GetResourceConfigHistory"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The resource type.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type.

*/ inline GetResourceConfigHistoryRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type.

*/ inline GetResourceConfigHistoryRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline GetResourceConfigHistoryRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline GetResourceConfigHistoryRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the resource (for example., sg-xxxxxx).

*/ inline GetResourceConfigHistoryRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline const Aws::Utils::DateTime& GetLaterTime() const{ return m_laterTime; } /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline bool LaterTimeHasBeenSet() const { return m_laterTimeHasBeenSet; } /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline void SetLaterTime(const Aws::Utils::DateTime& value) { m_laterTimeHasBeenSet = true; m_laterTime = value; } /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline void SetLaterTime(Aws::Utils::DateTime&& value) { m_laterTimeHasBeenSet = true; m_laterTime = std::move(value); } /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline GetResourceConfigHistoryRequest& WithLaterTime(const Aws::Utils::DateTime& value) { SetLaterTime(value); return *this;} /** *

The time stamp that indicates a later time. If not specified, current time is * taken.

*/ inline GetResourceConfigHistoryRequest& WithLaterTime(Aws::Utils::DateTime&& value) { SetLaterTime(std::move(value)); return *this;} /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline const Aws::Utils::DateTime& GetEarlierTime() const{ return m_earlierTime; } /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline bool EarlierTimeHasBeenSet() const { return m_earlierTimeHasBeenSet; } /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline void SetEarlierTime(const Aws::Utils::DateTime& value) { m_earlierTimeHasBeenSet = true; m_earlierTime = value; } /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline void SetEarlierTime(Aws::Utils::DateTime&& value) { m_earlierTimeHasBeenSet = true; m_earlierTime = std::move(value); } /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline GetResourceConfigHistoryRequest& WithEarlierTime(const Aws::Utils::DateTime& value) { SetEarlierTime(value); return *this;} /** *

The time stamp that indicates an earlier time. If not specified, the action * returns paginated results that contain configuration items that start when the * first configuration item was recorded.

*/ inline GetResourceConfigHistoryRequest& WithEarlierTime(Aws::Utils::DateTime&& value) { SetEarlierTime(std::move(value)); return *this;} /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline const ChronologicalOrder& GetChronologicalOrder() const{ return m_chronologicalOrder; } /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline bool ChronologicalOrderHasBeenSet() const { return m_chronologicalOrderHasBeenSet; } /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline void SetChronologicalOrder(const ChronologicalOrder& value) { m_chronologicalOrderHasBeenSet = true; m_chronologicalOrder = value; } /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline void SetChronologicalOrder(ChronologicalOrder&& value) { m_chronologicalOrderHasBeenSet = true; m_chronologicalOrder = std::move(value); } /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline GetResourceConfigHistoryRequest& WithChronologicalOrder(const ChronologicalOrder& value) { SetChronologicalOrder(value); return *this;} /** *

The chronological order for configuration items listed. By default, the * results are listed in reverse chronological order.

*/ inline GetResourceConfigHistoryRequest& WithChronologicalOrder(ChronologicalOrder&& value) { SetChronologicalOrder(std::move(value)); return *this;} /** *

The maximum number of configuration items returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of configuration items returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of configuration items returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of configuration items returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline GetResourceConfigHistoryRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline GetResourceConfigHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::Utils::DateTime m_laterTime; bool m_laterTimeHasBeenSet = false; Aws::Utils::DateTime m_earlierTime; bool m_earlierTimeHasBeenSet = false; ChronologicalOrder m_chronologicalOrder; bool m_chronologicalOrderHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws