func (p *DescribeMaintenanceWindowExecutionTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMaintenanceWindowExecutionTasksOutput, error) {
	if !p.HasMorePages() {
		return nil, fmt.Errorf("no more pages available")
	}

	params := *p.params
	params.NextToken = p.nextToken

	params.MaxResults = p.options.Limit

	result, err := p.client.DescribeMaintenanceWindowExecutionTasks(ctx, &params, optFns...)
	if err != nil {
		return nil, err
	}
	p.firstPage = false

	prevToken := p.nextToken
	p.nextToken = result.NextToken

	if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
		p.nextToken = nil
	}

	return result, nil
}
// NextPage retrieves the next DescribeMaintenanceWindowExecutionTasks page.
NextPage retrieves the next DescribeMaintenanceWindowExecutionTasks page.
// NextPage retrieves the next DescribeMaintenanceWindowExecutionTasks page .
func (p *DescribeMaintenanceWindowExecutionTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMaintenanceWindowExecutionTasksOutput, error) {
	if !p.HasMorePages() {
		return nil, fmt.Errorf("no more pages available")
	}
	params := *p.params
	params.NextToken = p.nextToken
	params.MaxResults = p.options.Limit
	result, err := p.client.DescribeMaintenanceWindowExecutionTasks(ctx, &params, optFns...)
	if err != nil {
		return nil, err
	}
	p.firstPage = false
	prevToken := p.nextToken
	p.nextToken = result.NextToken
	if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
		p.nextToken = nil
	}
	return result, nil
}
func ( p * DescribeMaintenanceWindowExecutionTasksPaginator ) NextPage ( ctx context . Context , optFns ... func ( * Options ) ) ( * DescribeMaintenanceWindowExecutionTasksOutput , error ) { if ! p . HasMorePages ( ) { return nil , fmt . Errorf ( " " ) } params := * p . params params . NextToken = p . nextToken params . MaxResults = p . options . Limit result , err := p . client . DescribeMaintenanceWindowExecutionTasks ( ctx , & params , optFns ... ) if err != nil { return nil , err } p . firstPage = false prevToken := p . nextToken p . nextToken = result . NextToken if p . options . StopOnDuplicateToken && prevToken != nil && p . nextToken != nil && * prevToken == * p . nextToken { p . nextToken = nil } return result , nil }
NextPage retrieves the next DescribeMaintenanceWindowExecutionTasks page.
NextPage retrieves the next DescribeMaintenanceWindowExecutionTasks page .