/** * 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 SecurityHub { namespace Model { /** */ class GetFindingHistoryRequest : public SecurityHubRequest { public: AWS_SECURITYHUB_API GetFindingHistoryRequest(); // 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 "GetFindingHistory"; } AWS_SECURITYHUB_API Aws::String SerializePayload() const override; inline const AwsSecurityFindingIdentifier& GetFindingIdentifier() const{ return m_findingIdentifier; } inline bool FindingIdentifierHasBeenSet() const { return m_findingIdentifierHasBeenSet; } inline void SetFindingIdentifier(const AwsSecurityFindingIdentifier& value) { m_findingIdentifierHasBeenSet = true; m_findingIdentifier = value; } inline void SetFindingIdentifier(AwsSecurityFindingIdentifier&& value) { m_findingIdentifierHasBeenSet = true; m_findingIdentifier = std::move(value); } inline GetFindingHistoryRequest& WithFindingIdentifier(const AwsSecurityFindingIdentifier& value) { SetFindingIdentifier(value); return *this;} inline GetFindingHistoryRequest& WithFindingIdentifier(AwsSecurityFindingIdentifier&& value) { SetFindingIdentifier(std::move(value)); return *this;} /** *

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the start time of the * requested finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

An ISO 8601-formatted timestamp that indicates the end time of the requested * finding history. A correctly formatted example is * 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date * and time should be separated by T. For more information, see RFC 3339 section 5.6, * Internet Date/Time Format.

If you provide values for both * StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for * StartTime but not for EndTime, Security Hub returns * finding history from the StartTime to the time at which the API is * called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding * history from the CreatedAt timestamp of the finding to the time at which the API * is called. In all of these scenarios, the response is limited to 100 results, * and the maximum time period is limited to 90 days.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

A token for pagination purposes. Provide NULL as the initial * value. In subsequent requests, provide the token included in the response to get * up to an additional 100 results of finding history. If you don’t provide * NextToken, Security Hub returns up to 100 results of finding * history for each request.

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

The maximum number of results to be returned. If you don’t provide it, * Security Hub returns up to 100 results of finding history.

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

The maximum number of results to be returned. If you don’t provide it, * Security Hub returns up to 100 results of finding history.

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

The maximum number of results to be returned. If you don’t provide it, * Security Hub returns up to 100 results of finding history.

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

The maximum number of results to be returned. If you don’t provide it, * Security Hub returns up to 100 results of finding history.

*/ inline GetFindingHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: AwsSecurityFindingIdentifier m_findingIdentifier; bool m_findingIdentifierHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws